Macro to change font of selected text in mail message?

  • Thread starter Thread starter Joe HM
  • Start date Start date
J

Joe HM

Hello -

I have done quite a bit of VB Scripting for Excel and Word but I think
I need some basic information on how to script for Outlook. The
following code will change the font of the currently selected text in a
Word document to Courier New ...
With Selection.Font
.Name = "Courier New"
End With
How would I do that in Outlook? Seems like I need to get a "handle" of
the mail message where the selection is being made.

Any hints?

Thanks!
Joe
 
You can't determine the selection in Outlook without using the SafeInspector
object from the Redemption library (http://www.dimastr.com).

Otherwise, you can use the Word Object Model if Word is being used as the
e-mail editor.
 
Back
Top