Hello, I am running a macro that converts a directory of Word documents to
PDF files. I am using a field in the footer that contains the file name. For
some reason I cannot supress the field updating. I rename the documents via a
script after placing the original filename in the footer. I need to preserve
the original filename for archiving purposes.
I have added the last 2 lines of code to the procedure to try to supress it,
but it still updates the field to the new name.
' Save the Word file as an PDF file
ActiveDocument.SaveAs FileName:=Left(strFilename, Len(strFilename) -
4) & ".pdf", _
FileFormat:=wdFormatPDF, LockComments:=True, Password:="", _
AddToRecentFiles:=True, WritePassword:="",
ReadOnlyRecommended:=False, _
EmbedTrueTypeFonts:=False, SaveNativePictureFormat:=False,
SaveFormsData _
:=False, SaveAsAOCELetter:=False
Options.UpdateLinksAtPrint = False
Options.UpdateFieldsAtPrint = False
Converting isn't really printing in this case (I think anyway). Any help
would be greatly appreciated.
Thanks!