![]() |
#16
|
|||
|
|||
![]()
The Debug shows the line where the code ran into a problem.
Did you copy and paste the code or did you type it? The first active line starts with "Dim." I am using Microsoft 365. |
#17
|
||||
|
||||
![]()
Metta
Sometimes there is something weird added to the vba code posted. In Charles' post above, there is a rogue '[/HTML]' sitting on a line. That should be deleted after you paste the code into the vba editor. If you then attempt to run the code, it 'should' work but it is possible there is something else which is causing problems. If this is the case, choose to 'Debug' the code and have a look at the highlighted line. If you post back telling us where the problem actually exists we can figure out what is going wrong.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#18
|
|||
|
|||
![]()
Hi Charles Kenyon
I copied and pasted the macro you sent me. When I pressed the debug it highlighted the top line and said there was an error. I guessed the error was in the highlighted line but there was no instruction of how to fix that error. Metta |
#19
|
|||
|
|||
![]()
Hi Guessed
In answer to your reply to my question about the macro to change to UK English, I think the error must be in the first line. That was the first line that showed up highlighted when a message said error. I'll take another look at it and see if there was a line with the initials you mentioned (HM...). Without what you wrote in front of me, I can't remember the full initial. Thank you for mentioning it. Metta |
#20
|
|||
|
|||
![]()
Hi Guessed
I just looked at the macro and saw that there was HTML in the highlighted line after pressing debug. I deleted that line and it still wouldn't run. There were other lines that showed HTML, so I deleted them too. It still didn't run but came up with a message that said For was missing. I deleted the macro from my VBA editor in Word and copied it from Charles Kenyon's original, back into my VBA editor. Now I have the original again that still doesn't run in Word. Metta |
![]() |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
KDuncan | Word | 1 | 01-16-2025 10:25 PM |
Not Changing Fonts From English to Non-English. | mohsen.amiri | Word | 0 | 07-31-2017 01:38 AM |
Finding Non-English Words in an English and Non-English words document | mohsen.amiri | Word | 3 | 03-31-2015 11:20 PM |
Word version doesn't have US English. | traumatiziert | Word | 1 | 04-20-2012 02:20 AM |
![]() |
tutwelve | Office | 7 | 08-20-2005 07:55 AM |