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
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