Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #10  
Old 10-27-2016, 11:47 PM
macropod's Avatar
macropod macropod is offline Word VBA - "Page left Blank" between Sections to make all Sections start on even page Windows 7 64bit Word VBA - "Page left Blank" between Sections to make all Sections start on even page Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by Cov_ATC View Post
I tried what you asked, manually adding a field, but it says
"Error! Unknown op code for conditional." when updating the field.
All that means is that you've input the field code incorrectly.
Quote:
Originally Posted by Cov_ATC View Post
Im sorry to ask again, but I really need a code to add-in a field.
The reason being is that the Doc is constantly being reviewed and amended, with paragraphs and sections removed or added.
I need the editors to be able to, when adding a new Section, press a customised button on the Word ribbon, which will add a Section Break where the cursor is on the document and also automatically, just before the section break, add in the field code.
So they don't have to go over the whole document and do it themselves (as they have only basic Word knowledge)

Could you help me please?
The code you posted creates ordinary braces, not field braces, for both the outer field and the nested fields. For the reasons given in post #5, that won't work.

I'd suggest that, for macro purposes, you create a custom building block using a working copy of the field, then simply insert that where & when required. To see what would be required to turn the text representation in to a working field code, see Convert Text Representations of Fields to Working Fields in the Mailmerge Tips & Tricks 'Sticky' thread, at: https://www.msofficeforums.com/mail-...ps-tricks.html - and that's for a text string that's already in the document and selected.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 

Tags
automatic, blank page, vba



Similar Threads
Thread Thread Starter Forum Replies Last Post
Word 2010: Section Break "Next" Creates Blank Page Eri Word 11 02-09-2017 03:36 PM
Word VBA - "Page left Blank" between Sections to make all Sections start on even page start SOME sections on new page. drew345 Word 4 12-10-2015 08:34 PM
"Temporary" files that show up on the left of page livemusic Word 4 05-28-2015 04:10 PM
Word VBA - "Page left Blank" between Sections to make all Sections start on even page Mailing: how to make the "page number" in Word is the same as "row number" in excel w Jamal NUMAN Word 1 09-03-2011 11:37 AM
Pesky "Sections Breaks" in word doc Scarlet Word 0 02-09-2011 01:46 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:35 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft