+ Reply to Thread
Results 1 to 3 of 3

Word - modify macro to loop search procedure and then extract pages as pdf

  1. #1
    Registered User
    Join Date
    08-30-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    39

    Word - modify macro to loop search procedure and then extract pages as pdf

    Hello

    For what I am trying to do, I have found a macro that does something close but needs some modifications and I am looking for recommendations how to achieve what I am looking for.

    I have a list of terms in an excel document that I am seeking to search a word document for, and then extract the page as a pdf for each result (2 search results are expected) - name the pdf = search term and place the pdf in a specific file.

    I found a macro that does something very similar, however, it only accepts one search term and then produces a word document listing all the search results.
    The original macro is located: http://www.vbaexpress.com/kb/getarticle.php?kb_id=158
    Assuming I should, where should I insert a loop to loop the search throughout the word doc?
    Where should I insert the code to make the search results into pdfs?
    Would appreciate your recommendations/ideas

    Thank you,

    Adam
    1. List of JVs.xlsxPayout Statements.docm

  2. #2
    Registered User
    Join Date
    01-28-2015
    Location
    Netherlands
    MS-Off Ver
    Micro office 2010
    Posts
    6

    Re: Word - modify macro to loop search procedure and then extract pages as pdf

    Here's a similar topic about extracting pages from PDF contains specific text: http://www.utteraccess.com/forum/Ext...-t2007085.html

  3. #3
    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 - modify macro to loop search procedure and then extract pages as pdf

    Are you searching just one file, or multiple files? What happens if the term is found in a document more than once - or in multiple documents, if there's more than one?
    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. [SOLVED] Key Word Search Loop
    By elsadt in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-10-2013, 03:37 PM
  2. Search for a word in a column and extract the word
    By Abishekar in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-17-2012, 09:30 AM
  3. [SOLVED] vba to search word and extract following 3 words
    By sausis in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-30-2012, 03:39 AM
  4. 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
  5. Search for and extract word from a cell
    By hmatharo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-30-2007, 10:21 PM

Tags for this Thread

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