bigvince1981
10-20-2011, 05:14 PM
Hi all,
I'd like to write something that would make sure acronyms from my company's master acronym list are defined (properly) on first instance within each document. The master acronym list is long--at one line per acronym at 12 pt font it's around 100 pages, formatted as a two-column table. Each row contains the acronym in the left column and the definition on the right column. The format could easily be changed if necessary.
For example, let's say the document was about software as a service (SaaS). The first time "software as a service" appears, it should be immediately followed by the acronym "SaaS," which is enclosed in parentheses. There are three possibilities:
The term is already correctly defined the first time it is used.
The term appears first but is not immediately followed by the acronym.
The acronym appears by itself before any mention of the full term.In case 1, I'd like to do nothing. In case 2, I'd like to insert "(SaaS)" after the term. In case 3, I'd like to insert "software as a service" before the acronym and place parentheses around the acronym.
Once the first instance of the acronym is properly defined, it would be nice to be able to flag subsequent instances of cases 1-3 and choose whether to use just the term, just the acronym, or to redefine the acronym.
I'm extremely new to VBA, so my first question is this: Is what I'd like to do even possible (with VBA or some other method)? Second, would there be a way to accommodate acronyms with multiple definitions? Finally, as I begin to learn VBA (with this being my goal), any suggestions as to what concepts I should start with?
Thanks,
Vince
PS I've been on a lot of other forums for C++ and Python and people often think this type of post is to get easy answers for homework assignments. This isn't, but even if it is, I'm only asking if this is possible and if someone can point me in the right direction.
I'd like to write something that would make sure acronyms from my company's master acronym list are defined (properly) on first instance within each document. The master acronym list is long--at one line per acronym at 12 pt font it's around 100 pages, formatted as a two-column table. Each row contains the acronym in the left column and the definition on the right column. The format could easily be changed if necessary.
For example, let's say the document was about software as a service (SaaS). The first time "software as a service" appears, it should be immediately followed by the acronym "SaaS," which is enclosed in parentheses. There are three possibilities:
The term is already correctly defined the first time it is used.
The term appears first but is not immediately followed by the acronym.
The acronym appears by itself before any mention of the full term.In case 1, I'd like to do nothing. In case 2, I'd like to insert "(SaaS)" after the term. In case 3, I'd like to insert "software as a service" before the acronym and place parentheses around the acronym.
Once the first instance of the acronym is properly defined, it would be nice to be able to flag subsequent instances of cases 1-3 and choose whether to use just the term, just the acronym, or to redefine the acronym.
I'm extremely new to VBA, so my first question is this: Is what I'd like to do even possible (with VBA or some other method)? Second, would there be a way to accommodate acronyms with multiple definitions? Finally, as I begin to learn VBA (with this being my goal), any suggestions as to what concepts I should start with?
Thanks,
Vince
PS I've been on a lot of other forums for C++ and Python and people often think this type of post is to get easy answers for homework assignments. This isn't, but even if it is, I'm only asking if this is possible and if someone can point me in the right direction.