![]() |
|
|
|
#1
|
||||
|
||||
|
Actually, I probably mis-read which set of code you were referring to. The macro quoted in your post doesn't use wildcards, so that aspect of the issue doesn't apply. Even so, the code is Word-specific and would require some changes before it could be used (if at all) in Outlook.
Outlook doesn't work with Word's Document or Range metaphors, so you'd have to change those aspects, presumably to work with a specified email (the outlook equivalent of a Word document) and it's body text (the Outlook equivalent of a Word range). On top of that, whatever Find/Replace code you use would have to be tailored to Outlook's VBA methods & properties (see http://msdn.microsoft.com/en-us/library/ee814736.aspx). If you take the Word code you're using and ask a question in our Outlook forum as to how to adapt it for use with whatever it is you're trying to highlight, someone there might be able to help you.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Find and highlight multiple words in MS Word document
|
AtaLoss | Word VBA | 37 | 09-22-2021 12:04 PM |
Help with finding multiple keywords in a single document then highlight
|
navyguy | Word | 2 | 01-03-2014 12:48 PM |
Highlight and then replace multiple words
|
redhin | Word VBA | 5 | 03-05-2013 05:42 AM |
Find and highlight all words ending in -ly
|
RBLampert | Word VBA | 13 | 10-23-2012 04:45 PM |
| find - reading highlight - highlight all / highlight doesn't stick when saved | bobk544 | Word | 3 | 04-15-2009 03:31 PM |