vbaoutlookms-wordcreateobject

Can I open Outlook from VBA without elevated privileges, even though Word is opened with elevated privileges


I would like to send an email upon the press of the Print button.

My code works when I open Word without elevated privileges.

I need the document to be opened with elevated privileges.
When I do so, the Outlook app created is also opened with elevated privileges, when Outlook is not currently running.

My guess is that when Outlook is already opened without being elevated (and I can't change that), the app that is being created with

Set olApp = CreateObject("Outlook.Application")

interferes with the currently opened Outlook.

Is it possible to create an Outlook process within VBA in an elevated Word document, without it being elevated?


Solution

  • No, Outlook is a singleton, you cannot open more than once instance of Outlook for a given local user.

    And if the security contexts differ, COM system refuses to marshal calls between two apps, so this is not even Outlook specific.