Hi,
I've got the following code
I've got the following code
Code:
Dim appOutLook As Outlook.Application
Dim MailOutLook As Outlook.MailItem
Set appOutLook = CreateObject("Outlook.Application")
Set MailOutLook = appOutLook.CreateItem(olMailItem)
With MailOutLook
.To = "xxx"
.Subject = "xxx"
.HTMLBody = "xxx"
.Attachments.Add "C:\Temp\xxx.snp", olByValue, 1, "xxx_SNP"
.Attachments.Add "C:\Temp\xxx.RTF", olByValue, 1, "xxx_RTF"
.Send
End With[code]
Which works fine on my pc. However when I try and use it on another pc I get
Run-time error '-1283440635 (b3804005)'
Outlook does not recognise one or more name
VB then Highlights the .Send
What can I do to change this. I noticed the other computer has reference to Microsoft outlook 9.0 object type library, whereas mine has Outlook 98 object type library. The other pc doesn't have this as an option. Is this the problem and either way how to I get round this.
Thanks in advance Rob! [Bigcheeks]
Process and Procedure are the last hiding place of people without the wit
and wisdom to do their job properly.