E
evandelagrammaticas
Good Morning All,
I am fairly new to Outlook VBA programming, and suspect that what I am
trying to do is fairly novice. I am trying to read the subject, to
email address, cc email fields and body of a new email that I am
creating before I send it.
The button that envokes the macro is embedded in the new email
template. I tried the code below to read the subject of the email, but
it gave me no results. Any help would be greatly appreciated.
Dim oMail As Outlook.MailItem
Dim sSubject As String
Set oMail = Application.ActiveInspector.CurrentItem
sSubject = oMail.Subject
MsgBox ("TEST: " & CStr(sSubject))
Cheers,
Evan
I am fairly new to Outlook VBA programming, and suspect that what I am
trying to do is fairly novice. I am trying to read the subject, to
email address, cc email fields and body of a new email that I am
creating before I send it.
The button that envokes the macro is embedded in the new email
template. I tried the code below to read the subject of the email, but
it gave me no results. Any help would be greatly appreciated.
Dim oMail As Outlook.MailItem
Dim sSubject As String
Set oMail = Application.ActiveInspector.CurrentItem
sSubject = oMail.Subject
MsgBox ("TEST: " & CStr(sSubject))
Cheers,
Evan