G
Guest
Hi All
If possible, can i get a bit of help with this? Been trying to use CDO and getting very confused
I've been looking at Dicks Clicks website (http://www.dicks-clicks.com/excel/olSending.htm#Sending_an_E-mail_with_Attachments)
and have put together the below macro. However, it gives me a "User-defined type not defined" error and highlights the line "Dim olApp As Outlook.Application
I'm wanting to use late binding, as this macro will be used from multiple machines
Can anyone suggest where i'm going wrong
Also, with using late binding, do i need to have Outlook open? or will i need to define a mail server and account for it to use
Cheers and thanks
A
Sub SendWithAtt(
Dim olApp As Outlook.Applicatio
Dim olMail As MailIte
Set olApp = New Outlook.Applicatio
Set olMail = olApp.CreateItem(olMailItem
With olMai
.To = "(e-mail address removed)
.Subject = "Failure Notification
.Body = "Failure of system process.
.Sen
End Wit
Set olMail = Nothin
Set olApp = Nothin
End Su
If possible, can i get a bit of help with this? Been trying to use CDO and getting very confused
I've been looking at Dicks Clicks website (http://www.dicks-clicks.com/excel/olSending.htm#Sending_an_E-mail_with_Attachments)
and have put together the below macro. However, it gives me a "User-defined type not defined" error and highlights the line "Dim olApp As Outlook.Application
I'm wanting to use late binding, as this macro will be used from multiple machines
Can anyone suggest where i'm going wrong
Also, with using late binding, do i need to have Outlook open? or will i need to define a mail server and account for it to use
Cheers and thanks
A
Sub SendWithAtt(
Dim olApp As Outlook.Applicatio
Dim olMail As MailIte
Set olApp = New Outlook.Applicatio
Set olMail = olApp.CreateItem(olMailItem
With olMai
.To = "(e-mail address removed)
.Subject = "Failure Notification
.Body = "Failure of system process.
.Sen
End Wit
Set olMail = Nothin
Set olApp = Nothin
End Su