Hi all,
I use this code to attach a document to a new mail in outlook.
This works fine with Outlook 2000, but on other versions it wont work for some reason.
How do i change the code below so that i doesnt matter what Outlook version i run it on?
Set objOutlookmsg = objOutlook.CreateItem(olMailItem)
objOutlookmsg.Attachments.Add sPath
objOutlookmsg.Subject = "Image Attached"
objOutlookmsg.Display
Set objOutlook = Nothing
Thanks in advance,
Agent009
I use this code to attach a document to a new mail in outlook.
This works fine with Outlook 2000, but on other versions it wont work for some reason.
How do i change the code below so that i doesnt matter what Outlook version i run it on?
Set objOutlookmsg = objOutlook.CreateItem(olMailItem)
objOutlookmsg.Attachments.Add sPath
objOutlookmsg.Subject = "Image Attached"
objOutlookmsg.Display
Set objOutlook = Nothing
Thanks in advance,
Agent009