I am using Outlook Professional Plus 2010 and trying to set the Font color.
Someone can give a clue?
Sub InsertText()
Dim sText As String
sText = "Myname" + Format(Now(), "mm/dd/yyyy") + ":"
On Error GoTo ErrHandler
If TypeName(ActiveWindow) = "Inspector" Then
If ActiveInspector.IsWordMail And ActiveInspector.EditorType = olEditorWord Then
Set oRng = ActiveInspector.WordEditor.Application.Selection.Range
With oRng
.Text = sText
.Font.Color = wdColorRed
.Font.Size = 11
.Collapse wdCollapseEnd
.Select
End With
'ActiveInspector.WordEditor.Application.Selection.TypeText sText
End If
End If
Exit Sub
ErrHandler:
Beep
End Sub