Bookmark ref in the footer requires update each time, any way aro.

S

salvitoto

I've set an Ask field code to get a bookmark reference and I've copied the
ref throughout the document successfully, except to the footer. The footer
always requires an update - manually going into the footer and hitting F9.

Anyone know anyway around this?
 
A

Anne Troy

Try this macro:
Sub UpdateFooterField()
IsProtected = UnProtectDocument
Dim sec As Section
For Each sec In ActiveDocument.Sections
sec.Footers(wdHeaderFooterPrimary).Range.Fields.Update
Next sec
Call ProtectDocument(IsProtected)
End Sub
**** Hope it helps! ****

~Dreamboat
Excel VBA Certification Coming Soon!
www.VBAExpress.com/training/
********************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top