I have a working application which interacts with Outlook. I have a totally separate application which I am updating to also interact with Outlook
In the new application I have created a blank form with a single button. The code behind that button is
Code:
Private Sub cmdEmail_Click()
Dim OutMail As Object
Set OutApp = CreateObject("Outlook.Application")
End Sub
When I click the button I get the dreaded error.
I have matched the references of the new app with all the references in the old working appm - and both apps are on the same machine (so same versions of Access, Office etc etc)