How to do a find and highlight on Notes field?

J

John Riddle

Hello,

I have a customized Outlook/Exchange application that I wrote with a lot of
functionality for our recruiting firm. The users really love it, but they'd
like to be able to highlight all the occurrances of a word(s) in the Notes
field (where we keep a rich text version of their resume). Is there ANY way at
all that I could write some code to do this? I know how to write my own
find/find next function to highlight the first/next occurrance of a word, but
is there a way to highlight ALL occurrances of a word at once?

Thanks,

John
 
J

John Riddle

Yes, I do use Redemption here and I don't think that it is much help in
highlighting multiple (non-contiguous) words at once. I can probably change
the font of the words to be in red or something if you can help with such
syntax as it applies to the Notes field of a contactitem.

Thanks,

John

message Can't Redemption's SafeInspector object do this? Actually, it can probably
only highlight one letter/word/phrase at a time, because that's all you can
do in the Outlook UI anyway. Maybe it can be used to bold/change colour/font
of various words?

--
Eric Legault - B.A, MCP, MCDBA, MCSD (VS 6.0), Outlook MVP
Try Picture Attachments Wizard - http://tinyurl.com/ckytm
Job: http://www.imaginets.com
Blog: http://blogs.officezealot.com/legault/
 
M

Michael Bauer

Am Thu, 8 Sep 2005 16:24:37 -0400 schrieb John Riddle:

John, the SafeInspector has an RTFEditor property. Use that to set the
selection with SelStart and SelLength, then use SelAttributes to set the
TextAttributes for the selected range.

It works like a charm :)
 
K

Ken Slovak - [MVP - Outlook]

But that's only for contiguous text, not for example the same word scattered
among the rest of the text.
 
M

Michael Bauer

Am Fri, 9 Sep 2005 09:37:01 -0400 schrieb Ken Slovak - [MVP - Outlook]:

You are right. But Eric´s idea is good: "higlight" the words e.g. with a
specified color.
 
J

John Riddle

If I can change the RTF property for a single word at a time, then I can skip
to the next occurrance and do the same for that word and so on. I wouldn't be
able to highlight them all at once, but it sounds like I can change the text
properties of those words.

I have already written my own Find... / Find Next... function for a text box
on my form that holds a lot of notes. I should be able to use that for
changing the the font of the words in question.

John

Am Fri, 9 Sep 2005 09:37:01 -0400 schrieb Ken Slovak - [MVP - Outlook]:

You are right. But Eric´s idea is good: "higlight" the words e.g. with a
specified color.
 

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