D
dherrig
I have the name I want to use as a file name already in the document. I want
to copy this and paste it into the Save as File name window using a macro. I
have recorded the macro but instead of putting in the file name window the
code to use the copied file name it pastes into the macro the name of the
file I was using when recording the macro so every file is saved with that
name instead of the newly copied name. What code do I need in place of
XXXX.doc to make this work?
ActiveDocument.SaveAs FileName:="XXXX.doc", FileFormat:= _
wdFormatDocument, LockComments:=False, Password:="",
AddToRecentFiles:= _
True, WritePassword:="", ReadOnlyRecommended:=False,
EmbedTrueTypeFonts:= _
False, SaveNativePictureFormat:=False, SaveFormsData:=False, _
SaveAsAOCELetter:=False
Thanks
Dave
to copy this and paste it into the Save as File name window using a macro. I
have recorded the macro but instead of putting in the file name window the
code to use the copied file name it pastes into the macro the name of the
file I was using when recording the macro so every file is saved with that
name instead of the newly copied name. What code do I need in place of
XXXX.doc to make this work?
ActiveDocument.SaveAs FileName:="XXXX.doc", FileFormat:= _
wdFormatDocument, LockComments:=False, Password:="",
AddToRecentFiles:= _
True, WritePassword:="", ReadOnlyRecommended:=False,
EmbedTrueTypeFonts:= _
False, SaveNativePictureFormat:=False, SaveFormsData:=False, _
SaveAsAOCELetter:=False
Thanks
Dave