目前以下编码正在工作,但它会自动保存在代码中定义的文件夹中。
Private Sub CommandButton2_Click()
' Button PDF '
ActiveDocument.ExportAsFixedFormat OutputFileName:= _
"\\Desktop\Test_PDF.pdf", ExportFormat:= _
wdExportFormatPDF, OpenAfterExport:=True, OptimizeFor:= _
wdExportOptimizeForPrint, Range:=wdExportFromTo, From:=2, To:=7, Item:= _
wdExportDocumentContent, IncludeDocProps:=True, KeepIRM:=True, _
CreateBookmarks:=wdExportCreateNoBookmarks, DocStructureTags:=True, _
BitmapMissingFonts:=True, UseISO19005_1:=False
End Sub
我想更改可以选择保存目的地的代码,所以如果我按下按钮,我会收到一个弹出窗口。