I use VBA automation in Access to send e-mail messages via Outlook. I first look for an existing instance of Outlook (using GetObject) and use it if found. If not found, then I create an instance (using CreateObject) — in this case I attempt to remove the instance when I’m done (using appOutlook.Quit and Set appOutlook = Nothing). The problem is that when I send multiple e-mails, I end up with multiple instances of Outlook (as viewed in Windows Task Manager). So, it seems, either GetObject is not detecting the existing instance of Outlook and/or the appOutlook.Quit command is not removing the instance that I created. Is there some bit of “object housekeeping” I’m missing that’s causing this “instance bloat”?
Thanks (in advance) for any help!