+ Reply to Thread
Results 1 to 2 of 2

Word VBA to extract, convert and save pages to PDF format

  1. #1
    Registered User
    Join Date
    12-02-2021
    Location
    Kitchener, ON
    MS-Off Ver
    2021
    Posts
    11

    Question Word VBA to extract, convert and save pages to PDF format

    Hello,

    I was wondering if there is a way to extract, convert and save pages to PDF format automatically. I have a word document with 20 pages, I need each page to be saved with a title based on the information in the word document. Example: Page 1 belongs to account name Alloy Foods or Account Number HKA0222. basically this >> Alloy Foods.pdf or HKA0222.pdf

    Thank you,
    Sam

  2. #2
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Word VBA to extract, convert and save pages to PDF format

    See, for example, Split Merged Output to Separate Documents in the Mailmerge Tips and Tricks page at:
    https://www.msofficeforums.com/mail-...ps-tricks.html
    Provided your document uses Section breaks rather than page breaks as the page delimiters, the conversion to individual files should be fairly straightforward. In order to name the documents as you suggest, each Section would need to have the string to be used in the exact same location on each page (e.g. only text in 1st paragraph).
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VBA to save word doc into individual pages and name according to first line on each page
    By viviclemente in forum Word Programming / VBA / Macros
    Replies: 6
    Last Post: 06-05-2018, 06:08 PM
  2. VBA to save word doc into individual pages and name according to first line on each page
    By viviclemente in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-05-2018, 09:50 AM
  3. Word - modify macro to loop search procedure and then extract pages as pdf
    By adamstarr12 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-20-2016, 06:47 AM
  4. VBA Code to Convert/Print Selected Pages of Word Document to PDF File
    By DD1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-05-2016, 01:59 AM
  5. [SOLVED] VBA Code to Convert/Print Selected Pages of Word Document to PDF File
    By DD1 in forum Word Programming / VBA / Macros
    Replies: 5
    Last Post: 08-17-2015, 02:18 AM
  6. Extract pages from word file and save extracted pages to new word file
    By bonny24tycoon in forum Word Programming / VBA / Macros
    Replies: 3
    Last Post: 06-28-2012, 09:45 AM
  7. [SOLVED] Convert Excel rows to pages in Word
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-01-2006, 07:20 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1