D
Daniel Knueven
I am writing an application which processes word documents. I find words of
interest and I want to highlight them. I want my software to work with Office
2000 and later. I am using early binding because I need to capture events
from the Word.Application interface. I have Office 2003 on my dev machine but
I am referencing the Office 2000 type libraries. When I try to run my code
with Office XP (I don't have 2000 to test against yet) I get an error when I
try to highlight a word: "Method '~' of Object '~' Failed".
rRange.HighlightColorIndex = wdYellow
The range object is valid because I can get the text of the range with no
problem. I've tried declaring the range as both Range and Object. The code
works fine with Office 2003. Any help is appreciated.
Thanks,
-Daniel
interest and I want to highlight them. I want my software to work with Office
2000 and later. I am using early binding because I need to capture events
from the Word.Application interface. I have Office 2003 on my dev machine but
I am referencing the Office 2000 type libraries. When I try to run my code
with Office XP (I don't have 2000 to test against yet) I get an error when I
try to highlight a word: "Method '~' of Object '~' Failed".
rRange.HighlightColorIndex = wdYellow
The range object is valid because I can get the text of the range with no
problem. I've tried declaring the range as both Range and Object. The code
works fine with Office 2003. Any help is appreciated.
Thanks,
-Daniel