J
John
Hi,
I have the following Field in the footer of a template. It updates fine when
printed but I am trying to get it to update when I do a FileSaveAs.
{FILENAME \* Lower \* MERGEFORMAT }{if{numpages}>{page}" /more"}
I have included some code to update these fields and the FILENAME updates
OK, but the second part doesn't.
Sub FileSaveAs()
For Each pRange In ActiveDocument.StoryRanges
Do
For Each oFld In pRange.Fields
oFld.Update
Next oFld
Set pRange = pRange.NextStoryRange
Loop Until pRange Is Nothing
Next
End Sub
Any suggestions what I can do to make the second part update?
Thanks,
John
I have the following Field in the footer of a template. It updates fine when
printed but I am trying to get it to update when I do a FileSaveAs.
{FILENAME \* Lower \* MERGEFORMAT }{if{numpages}>{page}" /more"}
I have included some code to update these fields and the FILENAME updates
OK, but the second part doesn't.
Sub FileSaveAs()
For Each pRange In ActiveDocument.StoryRanges
Do
For Each oFld In pRange.Fields
oFld.Update
Next oFld
Set pRange = pRange.NextStoryRange
Loop Until pRange Is Nothing
Next
End Sub
Any suggestions what I can do to make the second part update?
Thanks,
John