S
Stuart B
I have been using the following code to generate an email - the code to
generate the email itself works fine per se but when I run it I get a
run-time error on the line:
Dim objOutlook As New Outlook.Application '<< LINE 1
Dim objMessage As MailItem
' strEmailTo is a valid set or email addresses
Set objMessage = objOutlook.CreateItem(olMailItem)
With objMessage
.To = strEmailTo
.Subject = "Text Subject"
.Body = "Text Detail"
.Send
End With
It says on LINE 1 that the the user defined object is not found. Do I have
to create some other link to Outlook?
Thanks Stuart.
generate the email itself works fine per se but when I run it I get a
run-time error on the line:
Dim objOutlook As New Outlook.Application '<< LINE 1
Dim objMessage As MailItem
' strEmailTo is a valid set or email addresses
Set objMessage = objOutlook.CreateItem(olMailItem)
With objMessage
.To = strEmailTo
.Subject = "Text Subject"
.Body = "Text Detail"
.Send
End With
It says on LINE 1 that the the user defined object is not found. Do I have
to create some other link to Outlook?
Thanks Stuart.