View Single Post
 
Old 12-29-2020, 03:58 PM
Cray_Z Cray_Z is offline Windows 7 32bit Office 2007
Novice
 
Join Date: Sep 2014
Posts: 16
Cray_Z is on a distinguished road
Default Macro to identify text - create table w/text & page numbers

I am looking for a macro that will search the active Word document for specific text
and creating a table listing the text and page number(s) that it is found on.

Searching for .text = "\(CCI*\)"

I would like the table to look similar to this:

CCI # Page #
CCI 000808 1, 3, 8
CCI 000805 3

I modified an acronym finding macro and have limited success. It currently identifies the text that I search for but only returns the data for the first occurrence in the document.

I also would like to create the table at the end of the document starting on a new page.

Any assistance will be greatly appreciated.
Reply With Quote