Note: The other languages of the website are Google-translated. Back to English
登入  \/ 
x
or
x
註冊  \/ 
x

or

如何拆分Word文檔並另存為單獨的PDF文件?

在Word中,您可以將整個文檔保存為PDF文件,但是您是否曾經嘗試過拆分文檔,然後將頁面另存為單獨的PDF文件? 在本文中,我將介紹快速解決此問題的方法。

拆分Word文檔並使用VBA另存為單獨的PDF文件

將Word文檔拆分為按頁/標題/分隔符分隔的文件


拆分Word文檔並使用VBA另存為單獨的PDF文件

這裡的VBA代碼可以幫助您直接按頁面拆分Word文檔,然後另存為單獨的PDF文件。

1。 按 Alt + F11鍵 啟用鍵 Microsoft Visual Basic for Applications 窗口。

2。 點擊 插入 > 模塊,將以下代碼複製並粘貼到 模塊 窗口。

VBA:將Word保存為單獨的PDF

Sub SaveAsSeparatePDFs()
'UpdatebyExtendoffice20181120
    Dim I As Long
    Dim xDlg As FileDialog
    Dim xFolder As Variant
    Dim xStart, xEnd As Integer
    On Error GoTo lbl
    Set xDlg = Application.FileDialog(msoFileDialogFolderPicker)
    If xDlg.Show <> -1 Then Exit Sub
    xFolder = xDlg.SelectedItems(1)
    xStart = CInt(InputBox("Start Page", "KuTools for Word"))
    xEnd = CInt(InputBox("End Page:", "KuTools for Word"))
    If xStart <= xEnd Then
        For I = xStart To xEnd
            ActiveDocument.ExportAsFixedFormat OutputFileName:= _
                xFolder & "\Page_" & I & ".pdf", ExportFormat:=wdExportFormatPDF, _
                OpenAfterExport:=False, OptimizeFor:=wdExportOptimizeForPrint, Range:= _
                wdExportFromTo, From:=I, To:=I, Item:=wdExportDocumentContent, _
                IncludeDocProps:=False, KeepIRM:=False, CreateBookmarks:= _
                wdExportCreateHeadingBookmarks, DocStructureTags:=True, _
                BitmapMissingFonts:=False, UseISO19005_1:=False
        Next
    End If
    Exit Sub
lbl:
    MsgBox "Enter right page number", vbInformation, "KuTools for Word"
End Sub

3。 按 F5 鍵,在“瀏覽”對話框中,選擇一個文件夾來放置PDF文件。
doc拆分保存pdf 1

4。 點擊 OK,然後輸入要分割開始和結束的頁碼。

doc拆分保存pdf 2 doc拆分保存pdf 3


5。 點擊 OK。 現在,頁面已另存為單獨的PDF文件。
doc拆分保存pdf 4


將Word文檔拆分為按頁/標題/分隔符分隔的文件

如果您只想將Word文檔拆分為單獨的Word文件,則可以嘗試 Kutools for Word分裂 實用程序,它可以根據需要按標題1,分頁符,分節符或頁面拆分文檔。

Kutools for Word, 與以上 100 方便的功能,使您的工作更加輕鬆。 

安裝後 Kutools for Word,請執行以下操作:(現在免費下載Kutools for Word!)

1。 點擊 Kutools Plus > 分裂.
doc拆分保存pdf 5

2。 在裡面 分割文件 對話框中,選擇一個文件夾放置文檔,然後選擇要從中拆分的一種類型 分割為 下拉列表。
doc拆分保存pdf 6

3。 點擊 OK。 拆分後文件夾將自動打開。 現在,該文檔已拆分為多個文檔。
doc拆分保存pdf 7


分頁瀏覽和編輯多個Word文檔/ Excel工作簿,如Firefox,Chrome,Internet Explore 10!

您可能很熟悉在Firefox / Chrome / IE中查看多個網頁,並通過輕鬆單擊相應的選項卡在它們之間進行切換。 在這裡,Office選項卡支持類似的處理,使您可以在一個Word窗口或Excel窗口中瀏覽多個Word文檔或Excel工作簿,並通過單擊它們的選項卡輕鬆地在它們之間進行切換。
單擊免費試用Office選項卡!

使用Firefox在一個窗口中瀏覽多個Word文檔


推薦的Word生產力工具

 

Kutools For Word-超過100種Word高級功能,節省50%的時間

  • 複雜和重複的操作可以在幾秒鐘內完成一次處理。
  • 跨文件夾一次將多個圖像插入Word文檔。
  • 將文件夾中的多個Word文件合併並合併為所需順序。
  • 根據標題,分節符或其他條件將當前文檔拆分為單獨的文檔。
  • 在Doc和Docx之間,Docx和PDF之間轉換文件,用於常見轉換和選擇的工具集合等...

Say something here...
symbols left.
You are guest
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    D A · 9 days ago
    Please kindly explain : (Renaming doc) You could do this using the REN function if you open the CMD in the folder with the documents saved - and also 2 pages docs into one pdf
  • To post as a guest, your comment is unpublished.
    mfadlihr · 23 days ago
    Instead of saving each page as a separate document, how do I get the code to save every 2 or 3 pages as a separate document.
    • To post as a guest, your comment is unpublished.
      Sunny · 6 days ago
      Can't find the code to handle your job now. Try the Kutools for Word, it is free for using in 60 days
  • To post as a guest, your comment is unpublished.
    amarquette13 · 1 months ago
    OMG, you saved my life. I always need to do merge letters in word and then save each one individually in PDF. My last 40 letters was so fast!!! :)
  • To post as a guest, your comment is unpublished.
    jgall7804 · 1 months ago
    is there a way to name the files from text in the document instead of page 1, page 2 ,etc?
    • To post as a guest, your comment is unpublished.
      Becky · 1 months ago
      You could do this using the REN function if you open the CMD in the folder with the documents saved
    • To post as a guest, your comment is unpublished.
      Sunny · 1 months ago
      Sorry I have no idea.
  • To post as a guest, your comment is unpublished.
    Nico · 2 months ago
    VBA code does not work. Keeps saying "enter right page number. Word document is 3 pages long. I added in 1 and 3 in the messageboxes and got the error.
    • To post as a guest, your comment is unpublished.
      Sunny · 1 months ago
      Hi, Nico, I have try the code again, it works in my version window 10 64 2016, which version you use?