Thread: Convert to .doc
View Single Post
 
Old 04-17-2023, 07:11 AM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2019
Expert
 
Join Date: Aug 2014
Posts: 4,144
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Without knowing what the macro FileSaveWord11 is it is difficult to comment, however the following will save an existing document as DOC format - however be aware that DOC foirmat is not fully compatible with some later elements of DOCX format.

Code:
Sub SaveAsDOC()
Dim sPath As String
    ActiveDocument.Save
    sPath = Replace(ActiveDocument.FullName, ".docx", ".doc")
    ActiveDocument.SaveAs2 FileName:=sPath, FileFormat:=wdFormatDocument97
End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote