I have the following code. I have a reference to the Outlook library in
the reference list. My machine is standalone, not on a network.
Dim Olapp As Outlook.Application
Set Olapp = CreateObject("Outlook.Application")
This blows up with the message "Automation error, the specified module
could not be found."
If I change it to
Dim Olapp As Outlook.Application
or
Dim Olapp As Object
Set Olapp = GetObject(, "Outlook.Application")
then it works fine as long as Outlook is open.
Why does the above work but the CreateObject line fail?