View Single Post
 
Old 03-02-2016, 09:04 AM
SerenityNetworks SerenityNetworks is offline Windows 7 64bit Office 2007
Advanced Beginner
 
Join Date: May 2005
Location: Allen, Texas, USA
Posts: 37
SerenityNetworks
Question Acronym Macro to include surrounding text

I use the following macro to extract acronyms from various documents.
https://www.msofficeforums.com/word/...-acronyms.html

I'd like to expand the macro so that it captures the text before and after the discovered acronym and pastes it into the document following the page number. The documents I work with do not follow any standard convention on how acronyms are defined, such as within parenthesis with the definition immediately preceding. So I'd just like to capture a range of text before and after the acronym. It could be 'n' sentences before and after (as defined by periods) or simply a variable for 'n' characters before and after. I'm not particular. Sentences would be nice, but characters is fine if it is easier to code.

I'm not a coder, so I'd need someone to provide me the code to use.

Any help will be greatly appreciated.

Thanks in advance,
Andrew

Last edited by SerenityNetworks; 03-02-2016 at 01:53 PM.
Reply With Quote