![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Prompt email subject line when creating a new email outlook 2003 | macster | Outlook and VBA | 1 | January 5th 09 02:04 PM |
Delete Email from OUTBOX with certain Subject line | [email protected] | Outlook - General Queries | 1 | October 2nd 07 05:05 PM |
Change subject line in received email or saved email | rburley | Outlook Express | 4 | April 13th 07 01:49 PM |
email addy with permanant subject line | Leanin' Cedar | Outlook - General Queries | 1 | December 27th 06 06:28 PM |
Change email subject line... | silas | Outlook Express | 1 | February 27th 06 11:59 PM |