M
muyBN
When I ran the following code the first couple of times it created the
object, but now it won't. My objective is to create an e-mail with variables
defined previously in macro, and not sending it right away. Any suggestions?
(The reference library Outlook item is check-boxed in the menu.)
Dim objOutlookApp As Outlook.Application, objItem As Outlook.MailItem
With objItem
.To = strEmail
.Subject = strCo & ", " & " " & strJ
.Body = "message"
.Display
End With
Selection.InsertFile FileName:=strNew, Range:="", ConfirmConversions:=False,
Link:=False, Attachment:=True
Set objItem = Nothing
Set objOutlookApp = Nothing
object, but now it won't. My objective is to create an e-mail with variables
defined previously in macro, and not sending it right away. Any suggestions?
(The reference library Outlook item is check-boxed in the menu.)
Dim objOutlookApp As Outlook.Application, objItem As Outlook.MailItem
With objItem
.To = strEmail
.Subject = strCo & ", " & " " & strJ
.Body = "message"
.Display
End With
Selection.InsertFile FileName:=strNew, Range:="", ConfirmConversions:=False,
Link:=False, Attachment:=True
Set objItem = Nothing
Set objOutlookApp = Nothing