M
Mr. GetRight
Need a little help.
I'm using Outlook 2003, trying to make a macro that inputs a set statment in
the body of a message. I got it to do it but the problem is my statement
needs to be in front of the attachment that is already in the message but it
keep going behind it. Also for some reason it is removing the first letter
from my statment. I copy and pasted the main parts of it below, ...
Option Explicit
Public icn As String
Public myOlApp As New Outlook.Application
Public myEmail As Object
Public myAttachment As Object
Sub FormateEmail()
Set myEmail = myOlApp.ActiveInspector.CurrentItem
Set myAttachment = myEmail.Attachments
myEmail.To = "(e-mail address removed)"
myEmail.Subject = "Subject Line"
myEmail.Body = "output statement 1=" + icn + " Output statement2"
End Sub
I'm using Outlook 2003, trying to make a macro that inputs a set statment in
the body of a message. I got it to do it but the problem is my statement
needs to be in front of the attachment that is already in the message but it
keep going behind it. Also for some reason it is removing the first letter
from my statment. I copy and pasted the main parts of it below, ...
Option Explicit
Public icn As String
Public myOlApp As New Outlook.Application
Public myEmail As Object
Public myAttachment As Object
Sub FormateEmail()
Set myEmail = myOlApp.ActiveInspector.CurrentItem
Set myAttachment = myEmail.Attachments
myEmail.To = "(e-mail address removed)"
myEmail.Subject = "Subject Line"
myEmail.Body = "output statement 1=" + icn + " Output statement2"
End Sub