Re: Office 2003, VB6 problem
Hi
Just a little something else i discovered, if outlook 2003 is open when i run the program and i change
VB Code:
Set oOutlook = New Outlook.Application
to
VB Code:
Set oOutlook = Outlook.Application
then it works. so there seems to be a problem with the "new" but i still dont know how to correct it....
Nath
Re: Office 2003, VB6 problem
If your adding a reference to Outlook then the Set oOutlook = New Outlook.Application will work. If your not setting a reference to Outlook then use Set oOutlook = CreateObject("Outlook.Application") and that will create the instance. The reason why Set oOutlook = Outlook.Application works if Outlook is running is because its already created. If its not running then it will error.
Re: Office 2003, VB6 problem
Hi
I have tried what you said and i still get the "Automation error, The specified module could not be found" error.
It does this if i have the reference included and use
VB Code:
Set oOutlook = New Outlook.Application
it also happens if i use no reference and
VB Code:
Set oOutlook = CreateObject("Outlook.Application")
could this possibly be a problem with my outlook installation??
Re: Office 2003, VB6 problem
Yes, it could be. Try a Detect and Repair from Outlooks help menu and maybe an Office Update.