Consulting

Results 1 to 3 of 3

Thread: VBA to extract word pages (per content) to PDF format.

  1. #1
    VBAX Newbie
    Joined
    Dec 2022
    Posts
    1
    Location

    Question VBA to extract word pages (per content) to PDF format.

    Hi,

    I am looking for a VBA to extract word pages (per content) and convert to PDF format.

    Example: I have a word document with 30 pages, page 1 - 3 belong to ABC Company, and page 4 belongs to XYZ Company. Page 1 - 3 for ABC Company should be taken and converted to one page PDF and page 4 for XYZ Company should be converted as well to PDF. This process to continue for other account names with different word pages.

    I hope I explained it clearly.

    Thank you so much for your kind help.
    Sam

  2. #2
    Knowledge Base Approver VBAX Guru macropod's Avatar
    Joined
    Jul 2008
    Posts
    4,435
    Location
    It seems your document is probably the result of a mailmerge, in which case you can automate the generation of separate documents from the mailmerge itself. See, for example, Send Mailmerge Output to Individual Files and Run a Mailmerge from Excel, Sending the Output to Individual Files in the Mailmerge Tips & Tricks page at: Mailmerge Tips & Tricks (msofficeforums.com). Alternatvely, see Split Merged Output to Separate Documents in the same thread.
    Cheers
    Paul Edstein
    [Fmr MS MVP - Word]

  3. #3
    Knowledge Base Approver VBAX Guru macropod's Avatar
    Joined
    Jul 2008
    Posts
    4,435
    Location
    Cross-posted at: VBA to extract word pages to PDF format - Stack Overflow
    Please read VBA Express' policy on Cross-Posting in Rule 3: http://www.vbaexpress.com/forum/faq...._new_faq_item3
    Cheers
    Paul Edstein
    [Fmr MS MVP - Word]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •