winxmun
09-27-2007, 11:46 PM
Hi there, attached with my coding & wondering anybody can assist on the following. ie, at the body section, i'm thinking whether can auto pull the individual Signature in Ms Outlook? or how to input "enter" in the coding.
eg. in the body, how do i input the following (in the box) in order to appear the same in the Outlook?
"Thanks & regards
winxmun
cheers!!!"
Private Sub SendEmail_Click()
Dim olApp As Outlook.Application
Dim olMail As Outlook.MailItem
On Error Resume Next
Set olApp = GetObject(, "Outlook.Application")
If olApp Is Nothing Then Set olApp = New Outlook.Application
On Error GoTo 0
Set olMail = olApp.CreateItem(olMailItem)
With olMail
.Subject = "Testing"
.Recipients.Add "winxmun@yahoo.com"
.Attachments.Add "d:\testing.xls"
.Body = "winxmun; Thanks & Regards"
.Display 'This will display the message for you to check and send yourself subsequently
'.Send ' This will send the message straight away
End With
End Sub
thank you very much
eg. in the body, how do i input the following (in the box) in order to appear the same in the Outlook?
"Thanks & regards
winxmun
cheers!!!"
Private Sub SendEmail_Click()
Dim olApp As Outlook.Application
Dim olMail As Outlook.MailItem
On Error Resume Next
Set olApp = GetObject(, "Outlook.Application")
If olApp Is Nothing Then Set olApp = New Outlook.Application
On Error GoTo 0
Set olMail = olApp.CreateItem(olMailItem)
With olMail
.Subject = "Testing"
.Recipients.Add "winxmun@yahoo.com"
.Attachments.Add "d:\testing.xls"
.Body = "winxmun; Thanks & Regards"
.Display 'This will display the message for you to check and send yourself subsequently
'.Send ' This will send the message straight away
End With
End Sub
thank you very much