T
truhi
Hi,
I'm using outlook 2010 , I've created a new mail which contains an imag
and text.
I want the cursor to reposition in the body of item.
In that way, I can fill in the "To" and "cc" field, and when I click i
the content field, I can start typing in the body of item.
I created the following vba code, *Item.Body.select* Line, I get a
error
How to code a cursor can be positioned within the body of the Item?
Code
-------------------
Dim Item As MailItem
Set Item = Application.ActiveInspector.CurrentItem
Item.Body.select
Item.Body = "sentence 1" & vbNewLine & vbNewLine & _
"sentence 2"
Item.Display
I'm using outlook 2010 , I've created a new mail which contains an imag
and text.
I want the cursor to reposition in the body of item.
In that way, I can fill in the "To" and "cc" field, and when I click i
the content field, I can start typing in the body of item.
I created the following vba code, *Item.Body.select* Line, I get a
error
How to code a cursor can be positioned within the body of the Item?
Code
-------------------
Dim Item As MailItem
Set Item = Application.ActiveInspector.CurrentItem
Item.Body.select
Item.Body = "sentence 1" & vbNewLine & vbNewLine & _
"sentence 2"
Item.Display