Edit > Edit Message

Joined
Jun 5, 2008
Messages
1
Reaction score
0
Ok, I want to do the equivalent of clicking Edit -> Edit Message through VBA using the current opened item. I found this code which allows me to work with the current opened item:

Sub CurrentItem()
Dim myOLApp As New Outlook.Application
Dim myItem as Object
Set myItem = myOLApp.ActiveInspector.CurrentItem
myItem.Close
End Sub

I've worked years ago with Excel VBA but that was years ago, with Office 2000. Any ideas? I've googled, and searched through the Visual Basic help, but had no luck. Thanks.

Cheers,

Ayth
 

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