I'm trying to use the WordEditor
object to modify the color of the selected text (Outlook VBA) but i'm unable to find documentation or examples on how to do it. Any ideas?
I don't want to use the HTML editor, i need a solution for WordEditor
.
I tried debuging the code and using OutlookSpy, but everytime i go into WordEditor.Content my outlook freezes and restarts :(.
Using Outlook 2010 on Windows 7
Annotations are in German
Verweise: (I do not know how it is called in the english version)
Gruz $3v|\|
an other example:
Gruz $3v|\|
OK - I found something that works. Ugly, but works:
Eventually I found a reference that WordEditor returns a
Document
object. From there it was 2 hrs of going over MSDN's very slow web-help to find out that to get the selected text i needed to go up one level to theApplication
. Important note - changingrng.Style.Font
did not do what i wanted it to do, it changed the entire document, when i started using thewith rng.font
my problem was solved (Thanks to Excel's marco recording abilities for showing me the correct syntax)