End User: Access 2010 Runtime on Windows XP
Automated emails using an Outlook Template
I am trying to avoid referencing the Outlook Object Library as the PC's don't all have the same version of Outlook and I need my my runtime package to be installed at will on new/renovated PC's ... - so I am "Late Binding" :
Dim objOutlook as Object
Set objOutlook =GetObject("Outlook.Application")
seems to be OK if Outlook is open (I have put in a warning box to ensue users open Outlook)
My problem is now how to make the MailItem object
I (think I) need: Set objMailItem=objOutlook.CreateMailItem(objMailItem)
but have to I declare objMailItem??
Dim objMailItem as Outlook.MailItem obviously doesn't work
Dim objMailItem as MailItem doesn't work (though I found on the net!)
dim objMailItem as Object doesn't work either.
Is there another way of creating a MailItem object?
Is there a way of avoiding having to declare it?
Any suggestions would be most welcome.
Automated emails using an Outlook Template
I am trying to avoid referencing the Outlook Object Library as the PC's don't all have the same version of Outlook and I need my my runtime package to be installed at will on new/renovated PC's ... - so I am "Late Binding" :
Dim objOutlook as Object
Set objOutlook =GetObject("Outlook.Application")
seems to be OK if Outlook is open (I have put in a warning box to ensue users open Outlook)
My problem is now how to make the MailItem object
I (think I) need: Set objMailItem=objOutlook.CreateMailItem(objMailItem)
but have to I declare objMailItem??
Dim objMailItem as Outlook.MailItem obviously doesn't work
Dim objMailItem as MailItem doesn't work (though I found on the net!)
dim objMailItem as Object doesn't work either.
Is there another way of creating a MailItem object?
Is there a way of avoiding having to declare it?
Any suggestions would be most welcome.