This works in 2003:
In 2010, it bombs out on Set xlApp = New Excel.Application or Set objOL = New Outlook.Application
Did something change in COM that would break this? It seems to die on different objects on different machines. Is the registry hosed? Both the machines were upgraded from 2003.
Basically the code opens up instances of each application, does a bunch of stuff in the background, then closes them (or at least its supposed to).
Code:
Dim xlApp As Object
Dim wrdApp as Object
dim objOL as Object
...code...
Set xlApp = New Excel.Application
Set wrdApp = New Word.Application
Set objOL = New Outlook.Application
...code...
Set xlApp = Nothing
Set wrdApp = Nothing
Set objOL = Nothing
In 2010, it bombs out on Set xlApp = New Excel.Application or Set objOL = New Outlook.Application
Did something change in COM that would break this? It seems to die on different objects on different machines. Is the registry hosed? Both the machines were upgraded from 2003.
Basically the code opens up instances of each application, does a bunch of stuff in the background, then closes them (or at least its supposed to).