|
|
Thread Tools | Display Modes |
#16
|
|||
|
|||
Quote:
Scenario: 1. I got two files (screenshot is attached), the file that contains the list and the macro and another file in which I need to run the macro such that a. The expression is abbreviated the first time it appears on the document b. The expression in replaced by its abbreviation anywhere it appears on the document 2. Then how I’m supposed to run the macro that that it takes effect on the second file named “D3” a. Do I need to copy and paste the code to the file “D3” b. Do I need to copy the list to the “D3” c. Do I need only to click the code (screenshot is attached) to let it work Best Jamal
__________________
Jamal NUMAN, Jamal432@gmail.com, P.O.BoX: 731, Ramallah, West Bank. |
#17
|
||||
|
||||
Jamal,
You do not need to copy the code to your file. Simply open the 'Acronym Manager' document, switch back to the document you want to process, press Alt-F11, then click on the 'Acronym Manager' macro in the the 'Acronym Manager' document's 'ThisDocument' module and press F5. The only reason for copying the 'Acronym Manager' macro anywhere is to copy it to the document template (eg Normal.dotm) so that you can use it via Alt-F8 - with the acronym/abbreviation list stored in a separate document that the macro calls.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#18
|
|||
|
|||
Quote:
1. I opened both files (the one I need to process and 'Acronym Manager' document (attached) 2. While the current document is on the one I need to process I pressed Alt+F11 (attached) 3. I clicked the 'Acronym Manager' document (attached) and then pressed F5 4. Nothing happens to the file that I need to process! The “National Spatial Plan” is not replaced by “NSP” Where might be my mistake? Best Jamal
__________________
Jamal NUMAN, Jamal432@gmail.com, P.O.BoX: 731, Ramallah, West Bank. |
#19
|
||||
|
||||
Have you added and entry for “National Spatial Plan <tab> NSP” to the 'Acronym Manager' document? I don't see any evidence of it in your screenshots.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#20
|
|||
|
|||
Quote:
That’s for sure. If you check the screenshots of post #16 then you should find that the “National Spatial Plan <tab> NSP” is there (also attached here)! What might other issues that I should consider to make this macro work?
__________________
Jamal NUMAN, Jamal432@gmail.com, P.O.BoX: 731, Ramallah, West Bank. |
#21
|
||||
|
||||
In your modified 'Acronym Manager' document, it appears you have a space after 'Plan'. Since your test document doesn't have the space, the expression won't be found. Suggested solution: delete the space after 'Plan'.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#22
|
|||
|
|||
Quote:
Very much appreciated Paul for the help. It worked like a charm As usual, you are a star. Best Jamal
__________________
Jamal NUMAN, Jamal432@gmail.com, P.O.BoX: 731, Ramallah, West Bank. |
#23
|
|||
|
|||
Quote:
I've been reading to find a solution to a problem. Your macro looks awesome, but I get a run time error. If you can help I will be very grateful! I have a document with a lot of abbreviations after the full words, e.g. Microsoft (MS) and I'm trying to get a macro to populate a list with the acronym MS and then Microsoft, because after using Microsoft the first time I just use MS throughout the rest of the document. I found an awesome macro, but it works the other way around. Can you help please? |
#24
|
||||
|
||||
On which line are you getting the run time error?
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#25
|
|||
|
|||
Thanks for the code. I'm getting a runtime error 9 - subscript out of range.
When I debug it's getting stuck here: StrExp = Split(Split(FRList, vbCr)(j), vbTab)(0) I've saved the downloaded word doc as AcronymList.doc and put it in my documents folder. Anyone any ideas what I might have done wrong? I'm a little familiar with VBA but definitely no expert so it's hopefully something obvious to everyone else. Thanks in advance. |
#26
|
||||
|
||||
You should ensure your document satisfied the requirements of post # 11: https://www.msofficeforums.com/word-...html#post44875
The fact you're getting an error there suggests you have one of more paragraphs that do not include tab characters.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#27
|
|||
|
|||
The use of an abbreviation following the first use of a term and the abbreviation throughout the rest of the document is actually a poor documentation practise.
A more user friendly way is to have a 'Glossary' at the start of the document which groups all the abbreviations used in the document and which makes it much easier for any user to find a definition, particularly if they start reading part way through the document. |
#28
|
||||
|
||||
You're entitled to your opinion, of course, but the practice is quite common and spares readers having to turn to a glossary the first time they encounter an abbreviation. Glossaries usually go at the end of a document, not at the start. Definitions, on the other hand, usually go near the start - but not at the very start.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#29
|
|||
|
|||
Quote:
As to the convention of glossaries being at the end of a document, I can envisage this scenario as coming from paper publishing where the glossary is derived by reviewing the galley proofs and putting the glossary at the end doesn't disturb any previous page numbering. A further point you might find entertaining, is that although the industry I work in has essentially moved to electronic documents, they are still required to be electronic versions of paper documents. In an electronic document there is no need for a visible glossary because just selecting a word/acronym/symbol should pop up its definition but we are not allowed to do that obvious step. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Adding All Non-spelling Words in a Paragraph to Dictionary | SQLUSA | Word | 5 | 07-13-2012 04:05 AM |
Why Words doesn’t show the style of the selected words automatically???? | Jamal NUMAN | Word | 0 | 04-14-2011 03:20 PM |
How to take the tick out of Spelling in GPO? | Swarv | Word | 0 | 09-29-2010 02:16 AM |
Automating an address from an Abbreviation | Panzer | Word | 0 | 04-12-2010 06:11 AM |
UK spelling on emails | matthew.canwell | Outlook | 0 | 06-19-2009 06:34 AM |