Discussion Locked

Word 07 macro to save Doc as PDF

0 helpful
0 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have this macro written in Word 07:

Sub Convert_2_PDF()

ActiveDocument.ExportAsFixedFormat OutputFileName:= _
ActiveDocument.Path & "\" & Left(ActiveDocument.Name, _
Len(ActiveDocument.Name) - 5) & ".pdf", ExportFormat:= _
wdExportFormatPDF, OpenAfterExport:=False, OptimizeFor:= _
wdExportOptimizeForPrint, Range:=wdExportAllDocument, _
Item:=wdExportDocumentContent, IncludeDocProps:=True, KeepIRM:=True, _
CreateBookmarks:=wdExportCreateNoBookmarks, DocStructureTags:=True, _
BitmapMissingFonts:=True, UseISO19005_1:=False

End Sub

It works fine except that I want it to prompt me to Save As. Currnetly it saves the Template under the same name as a .pdf file, but I want it to give me the Save As window so I can give it a different name.
Any suggestions?

0 replies

No replies were posted before this discussion closed.

This discussion is closed to new replies.