View Full Version : [Macro] Change the color on several specific text on a Word document accordingly

08-30-2007, 05:55 AM
I want to write a small Macro program to change the color of several text on a word document accordingly. here is the condition:
Apr 9 2007(Monday) is the starting date. the Text "ABC" on the first row of this Word document will be in Blue color. (note: first row contains other text too)
On next week monday, which is Apr 16, Text "ABC" should in Black color
On Apr 23, Text "ABC" should be in red Color
On Apr 30, Text "ABC" should be in Green color
On May 7, Text "ABC" should be in Blue color again... and this process keep looping.
I don't have problem on the strategy/coding. But I have problem on identifing this specific "ABC" text in coding. Are there anyway to define this "ABC" as an variable in the code so I can change this specific "ABC" text color accordingly?



08-30-2007, 06:55 AM
P.S. I also hope this Macro can be loaded while open this Word document

Please help