Google Answers Logo
View Question
 
Q: MS Word: How to write a macro that can change a word’s color. ( No Answer,   2 Comments )
Question  
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?
Answer  
There is no answer at this time.

Comments  
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.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

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 Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy