evamads
12-15-2008, 10:39 AM
I have a document that has a header in it. In the header is this link/field:
{INCLUDETEXT "c:\Tilpas2007\Start\Brevhoved.docx" shs1}.
In Word 2003 I could use this code to update the field:
ActiveDocument.ActiveWindow.ActivePane.View.SeekView = wdSeekFirstPageHeader
Selection.WholeStory
Selection.Fields.Update
But in Word 2007 the field does not update, if it is placed in either a header or a footer. :wot
I have tried to record a macro going Office-button - Prepare - Edit Links to Files - Update
But this returns no VBA-code at all....
Can someone help?
Thanks,
/evamads
{INCLUDETEXT "c:\Tilpas2007\Start\Brevhoved.docx" shs1}.
In Word 2003 I could use this code to update the field:
ActiveDocument.ActiveWindow.ActivePane.View.SeekView = wdSeekFirstPageHeader
Selection.WholeStory
Selection.Fields.Update
But in Word 2007 the field does not update, if it is placed in either a header or a footer. :wot
I have tried to record a macro going Office-button - Prepare - Edit Links to Files - Update
But this returns no VBA-code at all....
Can someone help?
Thanks,
/evamads