View Single Post
 
Old 02-10-2014, 08:45 AM
ChrisBrewster ChrisBrewster is offline Windows 7 64bit Office 2010 64bit
Advanced Beginner
 
Join Date: Jan 2014
Posts: 36
ChrisBrewster is on a distinguished road
Default How to update fields in all header definitions

I need to toggle a document between two sets of field values. I have everything working except that ActiveDocument.Fields.Update does not update fields in the page header and footer. I recorded some code to do this but it only updates the header for the section where the cursor is located. I think the object I need is something like the following, but I'm having trouble with indexes and For loops.

ActiveDocument.Sections(iSectInd).Headers(1).Range .Fields.Update

Can someone help untangle this? Thank!
Reply With Quote