Highlighting text with word add-in

S

Shane

Hello I am actually developing an add-in for Microsoft
Office with a COM object. I'd like to programatically
highlight certain elements of a string, based on some
criteria. My problem is that i can't find a good
explanation of the object model, and the methods of those
objects. I suspect that most vba programmers would have
tried something like this before, and probably i require
the same object manipulations. IF anyone has any idea at
al how to do this be it this way or another way, i 'd sure
apprecaite any help in this matter. In addition, can any
of you reccomend an online resource for the Word Object
model that covers the methods and what they do. Also are
there any really good books that anyone would recomend for
writing add-in such as this. I can get adn select text
easily using the activedocument property of the app-
object. And am working in .net usign the com extensions.

Basically what i am trying to do is the following. I'd
like to highlight corpra based on certain phonetic
properties of that corpora.
 
A

abistech.com

The VB syntax for string manipulation is the following:

left(string, 7) 'prints 7 characters from the left
or
right(string, 7) 'prints 7 from right

and etc.
or you can use:
mid() 'trims characters in the middle
Instr() 'counts
UCase() 'to change to uppercase
Trim() 'to trim spaces, letter, etc.

hope this helps
Good Books: COM Programming by Wrox Publishing

www.abistech.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top