Word "Save As" Macro w/Current File Name
by chesbaycruiser - 2/17/09 7:28 AM
Greetings. I know only enough about macros & programming to be dangerous, so I am hoping this is a simple, syntax question. I am trying to create a macro in MS Word 2003 (via the recorder) that simply saves the file in a new format (.rtf) in a new location.
My question is, in the code below, what is the proper syntax to save the file using the current filename, instead of the static filename "2244328-42569.rtf" (the file used to record the macro)?
' Save_As_RTF Macro
' Macro recorded 2/17/2009 by TCB
ActiveDocument.SaveAs FileName:="2244328-42569.rtf", FileFormat:= _
wdFormatRTF, LockComments:=False, Password:="", AddToRecentFiles:=True, _
WritePassword:="", ReadOnlyRecommended:=False, EmbedTrueTypeFonts:=False, _
SaveNativePictureFormat:=False, SaveFormsData:=False, SaveAsAOCELetter:= _