Thread: [Solved] Docx to rtf
View Single Post
 
Old 02-06-2022, 01:40 PM
spillerbd spillerbd is offline Windows 10 Office 2013
Competent Performer
 
Join Date: Jan 2016
Posts: 130
spillerbd is on a distinguished road
Default

I recorded the process and then updated the Name property to variable and got this code

Code:
Sub SaveAsRTF()
'
' SaveAsRTF Macro
'
'
    ChangeFileOpenDirectory _
        ActiveDocument.Path
    ActiveDocument.SaveAs2 FileName:=ActiveDocument.Name & ".RTF", FileFormat:= _
        wdFormatRTF, LockComments:=False, Password:="", AddToRecentFiles:=True, _
        WritePassword:="", ReadOnlyRecommended:=False, EmbedTrueTypeFonts:=False, _
         SaveNativePictureFormat:=False, SaveFormsData:=False, SaveAsAOCELetter:= _
        False, CompatibilityMode:=0
    ActiveDocument.Close
End Sub
Reply With Quote