|
|
Subject:
MS Word: How to write a macro that can change a word’s color.
Category: Computers > Software Asked by: rambler-ga List Price: $20.00 |
Posted:
20 Mar 2006 07:18 PST
Expires: 19 Apr 2006 08:18 PDT Question ID: 709557 |
I already have a macro that takes a selected chunk of text and reformats it into a table. (It also knows how to change the color of text within that table: for example, it changes italic text into one color, and bold text into another.) The entire document is similar to a dictionary, with each table devoted to a different word in the dictionary. Suppose the word for a given table is ?child?. I want ?child? to appear [BLUE, NOT BOLD], and the word ?children? to appear [BLUE, BOLD] throughout the table. I can?t hard-code ?child? and ?children? into the macro because every table deals with a different pair of words. How do I expand the existing macro to deal with this problem? |
|
There is no answer at this time. |
|
Subject:
Re: MS Word: How to write a macro that can change a word’s color.
From: daemon_byte-ga on 21 Mar 2006 05:16 PST |
I don't think its possible in word however if you were to make the table in excel it would be quite simple as long as each table was a set length or had a distingushing feature. you could run a for loop that took a word from a cell then formatted the table correctly. with each loop it drops a certain number of cells to the next table and does it again. |
Subject:
Re: MS Word: How to write a macro that can change a word’s color.
From: rambler-ga on 21 Mar 2006 06:27 PST |
Just to be clear: The macro only needs to work on ONE table. True, the document contains many, many tables, but I will select only ONE of those tables and then launch the macro. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |