S
Steve C
I am writing a procedure that allows a user to update all the Word documents
in a selected folder with new information. In the process, I want each
document to be saved under a new name (which I know how to do) , but also
delete the old document.
Part of my code is as follows:
ChangeFileOpenDirectory PathToUse 'determined earlier in code
ActiveDocument.SaveAs FileName:=NewDocName, FileFormat:= _
wdFormatDocument, LockComments:=False, Password:="", AddToRecentFiles:= _
True, WritePassword:="", ReadOnlyRecommended:=False, EmbedTrueTypeFonts:= _
False, SaveNativePictureFormat:=False, SaveFormsData:=False, _
SaveAsAOCELetter:=False
Of course, what I end up with in the chosen folder is all of the original
documents, plus their newly saved updated versions. How do I tell Word
during the Save As process to get rid of the original file? Thanks much!
in a selected folder with new information. In the process, I want each
document to be saved under a new name (which I know how to do) , but also
delete the old document.
Part of my code is as follows:
ChangeFileOpenDirectory PathToUse 'determined earlier in code
ActiveDocument.SaveAs FileName:=NewDocName, FileFormat:= _
wdFormatDocument, LockComments:=False, Password:="", AddToRecentFiles:= _
True, WritePassword:="", ReadOnlyRecommended:=False, EmbedTrueTypeFonts:= _
False, SaveNativePictureFormat:=False, SaveFormsData:=False, _
SaveAsAOCELetter:=False
Of course, what I end up with in the chosen folder is all of the original
documents, plus their newly saved updated versions. How do I tell Word
during the Save As process to get rid of the original file? Thanks much!