Setting focus?

W

Ward Horsfall

Hi,

I am writing a vba macro to create a mail message automatically. So it
creates the mail item ok....

However how can I set focus to the Body part of the email?

e.g.

Set thisitem = appOL.CreateItem(olMailItem)

thisitem.SentOnBehalfOfName = "FooBar"
thisitem.subject = subject_line
thisitem.Body = IncidentBox.List(lookup, 4) + "," + vbCrLf + vbCrLf
thisitem.BCC = "FooBar1"
thisitem.Display
thisitem.Body.Control.SetFocus

Thanks
Ward.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top