If you are not familiar with VBA code, you can try to use an add-in tool – Kutools for Word, its Split feature can help you to split a Word document into pages based on page breaks, page numbers, heading1, section breaks, every nth page and custom page number you specify, then apply the Document Format Converter to batch convert the split Word documents to PDF. Now the pages have been saved as separate PDF files. 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 then save as PDF 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. How to split a Word document and save as separate PDF file?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |