damianjmcgrath
Board Regular
- Joined
- Oct 31, 2008
- Messages
- 72
Hello,
Can someone explain to me how to write a macro in Word to highlight line 23 and change the font of that line to Verdana.
The reason I want to do this is because I am using a ASK field to get the input of "Customer's Name". The field is then used at several points in the document using the REF field. However, the first use of it is in the letter's title which is in Bold and Verdana. The rest of the letter is in Non-Bold Arial.
However, when I input the customer's name into the inbox box, it adds the customers name everywhere in the document as Bold Verdana. Taking out MERGEFORMAT everywhere doesnt solve this, nor does adding it!
So, my next solution was to change the whole letter to Non-Bold Arial, and then after everything has run, add some extra code to make line 23 to Bold Verdana.
Has anyone got any advice on how to write that macro or fix the problem with the ASK and REF fields?
Thanks.
Can someone explain to me how to write a macro in Word to highlight line 23 and change the font of that line to Verdana.
The reason I want to do this is because I am using a ASK field to get the input of "Customer's Name". The field is then used at several points in the document using the REF field. However, the first use of it is in the letter's title which is in Bold and Verdana. The rest of the letter is in Non-Bold Arial.
However, when I input the customer's name into the inbox box, it adds the customers name everywhere in the document as Bold Verdana. Taking out MERGEFORMAT everywhere doesnt solve this, nor does adding it!
So, my next solution was to change the whole letter to Non-Bold Arial, and then after everything has run, add some extra code to make line 23 to Bold Verdana.
Has anyone got any advice on how to write that macro or fix the problem with the ASK and REF fields?
Thanks.