Click OK, then enter the page numbers you want to split start and end.ĥ. Press F5 key, in Browse dialog, select a folder to place the PDF files.Ĥ. MsgBox "Enter right page number", vbInformation, "KuTools for Word"ģ. WdExportCreateHeadingBookmarks, DocStructureTags:=True, _īitmapMissingFonts:=False, UseISO19005_1:=False IncludeDocProps:=False, KeepIRM:=False, CreateBookmarks:= _
WdExportFromTo, From:=I, To:=I, Item:=wdExportDocumentContent, _ OpenAfterExport:=False, OptimizeFor:=wdExportOptimizeForPrint, Range:= _ XFolder & "\Page_" & I & ".pdf", ExportFormat:=wdExportFormatPDF, _ XEnd = CInt(InputBox("End Page:", "KuTools for Word"))ĪctiveDocument.ExportAsFixedFormat OutputFileName:= _ XStart = CInt(InputBox("Start Page", "KuTools for Word"))
Set xDlg = Application.FileDialog(msoFileDialogFolderPicker) VBA: Save Word as separate PDF Sub SaveAsSeparatePDFs() Click Insert > Module, copy and paste below code to the Module window. Press Alt + F11 keys to enable Microsoft Visual Basic for Applications window.Ģ. Here the VBA code can help you directly split a Word document by pages then save as separate PDF files.ġ. Split a Word document to separate files by pages/heading1/ break Split a Word document and save as separate PDF file with VBA In Word, you can save the whole document to a PDF file, but have you ever tried to split the document and then save the pages as separate PDF file? In this article, I will introduce the methods on solving this job quickly.
#MAC PDF WORD KEEPS SAVING MULTIPLE FILES FOR DOCUMENT HOW TO#
How to split a Word document and save as separate PDF file?