A
Angus
I currently have the following code which uses Outlook to send an email:
************
Dim olApp As Outlook.Application
Dim objMail As Outlook.MailItem
Set olApp = Outlook.Application
Set objMail = olApp.CreateItem(olMailItem)
With objMail
.To = "(e-mail address removed)"
.Subject = "Subject here"
.BodyFormat = olFormatPlain
.Body = "Hello world."
.Attachments.Add "C:\test.txt"
.Send
End With
**************
I understand that is it possible to change this so that it has "late
binding" which will make it independant of any particular version of Outlook.
I don't know what this means, how do I do it?
Thanks in advance.
************
Dim olApp As Outlook.Application
Dim objMail As Outlook.MailItem
Set olApp = Outlook.Application
Set objMail = olApp.CreateItem(olMailItem)
With objMail
.To = "(e-mail address removed)"
.Subject = "Subject here"
.BodyFormat = olFormatPlain
.Body = "Hello world."
.Attachments.Add "C:\test.txt"
.Send
End With
**************
I understand that is it possible to change this so that it has "late
binding" which will make it independant of any particular version of Outlook.
I don't know what this means, how do I do it?
Thanks in advance.