D
Douglas McKibbin
How can I place the contents of the clipboard in the name of the
document that I am saving as an rtf file in a macro. If I record a
macro to do this and paste the contents of the scrapbook into the
document name in the SavAs dialog, the macro does not contain the paste
command. Instead only the current scrapbook text appears ( PW52-1) in
the document name in the macro. I think I probably have to assign a
variable to the scapbook contents and place the variable in the
document name ...."Macintosh HD:VARIABLE.rtf". Unfortunately I don't
know how to do this in Visual Basic.
Sub SaveAsRTF()
'
' SaveAsRTF Macro
' Macro recorded 5/28/05 by Douglas McKibbin
ActiveDocument.SaveAs FileName:="Macintosh HDW52-1.rtf",
FileFormat:= _
wdFormatRTF, LockComments:=False, Password:="",
AddToRecentFiles:=True, _
WritePassword:="", ReadOnlyRecommended:=False,
EmbedTrueTypeFonts:=False, _
SaveNativePictureFormat:=False, SaveFormsData:=False,
SaveAsAOCELetter:= _
False, HTMLDisplayOnlyOutput:=False
End Sub
document that I am saving as an rtf file in a macro. If I record a
macro to do this and paste the contents of the scrapbook into the
document name in the SavAs dialog, the macro does not contain the paste
command. Instead only the current scrapbook text appears ( PW52-1) in
the document name in the macro. I think I probably have to assign a
variable to the scapbook contents and place the variable in the
document name ...."Macintosh HD:VARIABLE.rtf". Unfortunately I don't
know how to do this in Visual Basic.
Sub SaveAsRTF()
'
' SaveAsRTF Macro
' Macro recorded 5/28/05 by Douglas McKibbin
ActiveDocument.SaveAs FileName:="Macintosh HDW52-1.rtf",
FileFormat:= _
wdFormatRTF, LockComments:=False, Password:="",
AddToRecentFiles:=True, _
WritePassword:="", ReadOnlyRecommended:=False,
EmbedTrueTypeFonts:=False, _
SaveNativePictureFormat:=False, SaveFormsData:=False,
SaveAsAOCELetter:= _
False, HTMLDisplayOnlyOutput:=False
End Sub