View Single Post
 
Old 11-22-2019, 12:54 PM
BobBridges's Avatar
BobBridges BobBridges is offline Windows 7 64bit Office 2010 32bit
Expert
 
Join Date: May 2013
Location: USA
Posts: 700
BobBridges has a spectacular aura aboutBobBridges has a spectacular aura about
Default Why would GetObject(, "Outlook.Application") fail?

I'm writing an Excel program to generate emails for a coworker. It works alright for me, but right at the beginning when he gets to


Set ool = GetObject(, "Outlook.Application")


...it fails for him, "type mismatch" error. He's in Michigan, I'm in NC, so it's impractical for me to run over to his desk to see what's going on. He tells me a copy of Outlook ~is~ running. His Tools / References are the same as mine. I tried getting him to change that statement to


Set ool = CreateObject("Outlook.Application")


...but it just said it couldn't create the object.


I'm not sure even what questions to ask. What ~could~ cause it not to be able to find a copy of Outlook? I'm pretty well convinced that there is something basic I've misunderstood about GetObject and/or CreatObject that would clear this up for me, but I can't see what it might be.
Reply With Quote