N
N More
Hi!
How to check if the ActiveInspector.CurrentItem is in *edit mode? (it's
only my terminology)
I would like to simply insert a text into the body of the currently
opened mail (by clicking a toolbar button).
But Outlook inserts the text regardless if it's in edit mode or not.
(And even it saves it without a prompt)
I can't find anything how to check this state.
The code is something like this:
30 Set objItem = Application.ActiveInspector.CurrentItem
40 Set objInsp = objItem.GetInspector
50 If objInsp.EditorType = olEditorWord Then
60 Set objDoc = objInsp.WordEditor
70 objDoc.ActiveWindow.Selection.InsertAfter psText
80 Else
90 objItem.HTMLBody = objItem.HTMLBody & psText
100 End If
Thx
How to check if the ActiveInspector.CurrentItem is in *edit mode? (it's
only my terminology)
I would like to simply insert a text into the body of the currently
opened mail (by clicking a toolbar button).
But Outlook inserts the text regardless if it's in edit mode or not.
(And even it saves it without a prompt)
I can't find anything how to check this state.
The code is something like this:
30 Set objItem = Application.ActiveInspector.CurrentItem
40 Set objInsp = objItem.GetInspector
50 If objInsp.EditorType = olEditorWord Then
60 Set objDoc = objInsp.WordEditor
70 objDoc.ActiveWindow.Selection.InsertAfter psText
80 Else
90 objItem.HTMLBody = objItem.HTMLBody & psText
100 End If
Thx