why doesn't this work anymore???

  • Thread starter Thread starter SuperMagnetMan
  • Start date Start date
S

SuperMagnetMan

Set myolapp = CreateObject("Outlook.Application")

Ihave used this for years ni office apps to launch outlook from within excel
and word but now in the latest version it doesn't work. Is there something
else that has to be set to make this work? It produces the error "Type
Mismatch" which is, as usual, very helpful. I have the outlook reference
set, is there anything else required. Of course Ihave previously
dimensioned it as an application.

thanks
George
 
For reasons that absolutely escape me, the fix is to NOT Dim the object as
an Application. I commented out the line that dimensions the object and the
program worked perfectly like it is supposed to.

Thanks
George
 
Back
Top