6/7/2023 0 Comments Word macro to addpdf to wordXSaveFolder = xSaveDlg.SelectedItems(1) "\"ĪctiveDocument. Set xSaveDlg = Application.FileDialog(msoFileDialogFolderPicker) After running the code, an Open window pops up, please select a folder containing the douments you want to convert, in the second popping up Save PDF files in window, select a folder to save the PDF files.ĭim xDlg As FileDialog, xSaveDlg As FileDialogĭim xFolder As Variant, xSaveFolder As Variant The following VBA code can do you a favor. In the Document Format Converter window, you need to do as follows: Kutools for Word : With more than 100 handy Word add-ins, free to try with no limitation in 60 days.ġ. If VBA code is hard to handle, you can try the Convert documents utility of Kutools for Word to solve the problem. Then all Word documents in selected folder are converted to separate pdf files at once. A Browse dialog pops up, please select the folder which contains Word documents you will convert to pdf files, and click the OK button. Item:=wdExportDocumentContent, IncludeDocProps:=True, KeepIRM:=True, _ĬreateBookmarks:=wdExportCreateNoBookmarks, DocStructureTags:=True, _īitmapMissingFonts:=True, UseISO19005_1:=FalseĤ. WdExportOptimizeForPrint, Range:=wdExportAllDocument, From:=1, To:=1, _ WritePasswordDocument:="", WritePasswordTemplate:="", Format:= _ĪctiveDocument.ExportAsFixedFormat OutputFileName:=xFolder
0 Comments
Leave a Reply. |