![]() |
Late Binding to Word Variables
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 -- When you lose your mind, you free your life. |
Late Binding to Word Variables
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. -- Regards, Tom Ogilvy "ben" (remove this if mailing direct) wrote in message ... 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 -- When you lose your mind, you free your life. |
Late Binding to Word Variables
Thanks Tom, it was the WdColor reference I needed, Never new I could look up
values in there, thanks much. -- When you lose your mind, you free your life. "Tom Ogilvy" wrote: 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. -- Regards, Tom Ogilvy "ben" (remove this if mailing direct) wrote in message ... 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 -- When you lose your mind, you free your life. |
All times are GMT +1. The time now is 09:08 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com