Late Binding to Word Variables

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am running late binding to word, and am needing to replace word variables
with there actual values, I have figured out how to replace all of them
except text color. Is there anyone who knows of a resource where I could find
values for word Late binding. (Specifically text coloring)
Ben
 
Probably the object browser with a reference set to the word object library.

There is a Constant Class called - WdColorIndex

select that under Class and then look at the members.
select each one in the object brower and look at the value.


Usage example:

ActiveDocument.Paragraphs(1).Range.Font.ColorIndex = wdGreen

wdGreen has a value of 11

so
ActiveDocument.Paragraphs(1).Range.Font.ColorIndex = 11

there is also a constant class called WdColor. You can look at that too.
 
Thanks Tom, it was the WdColor reference I needed, Never new I could look up
values in there, thanks much.
 
Back
Top