Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
ben ben is offline
external usenet poster
 
Posts: 232
Default 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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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.



  #3   Report Post  
Posted to microsoft.public.excel.programming
ben ben is offline
external usenet poster
 
Posts: 232
Default 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.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Late Binding examples of binding excel application HeatherO Excel Programming 13 March 17th 05 08:19 AM
late binding onto Word problem jason Excel Programming 0 June 24th 04 11:44 AM
EARLY binding or LATE binding ? jason Excel Programming 6 February 26th 04 04:57 PM
DAO Late Binding? Sharqua Excel Programming 2 January 4th 04 02:05 AM
Early vs Late Binding - Word John Wilson Excel Programming 6 November 13th 03 03:21 PM


All times are GMT +1. The time now is 03:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"