VBA trying to launch Outlook 2016

Marty Sheehan 0 Reputation points
2026-07-31T15:21:20.67+00:00

My VBA Excel code is set to send an email, but rather than using the existing Outlook on my laptop is trying to launch and install Outlook 2016

Developer technologies | Visual Basic for Applications
0 comments No comments

4 answers

Sort by: Most helpful
  1. Senthil kumar 1,895 Reputation points
    2026-08-03T04:54:25.69+00:00

    Hi @Marty Sheehan

    try to change your vba code. like below.

    Dim olApp As Object
    Set olApp = CreateObject("Outlook.Application")
    
    
    

    Thanks.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

  2. Jay Pham (WICLOUD CORPORATION) 4,155 Reputation points Microsoft External Staff Moderator
    2026-08-03T00:17:13.0966667+00:00

    Hi @Marty Sheehan ,

    We are currently investigating the issue and will provide an update soon. Thank you for your patience.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

  3. Jay Pham (WICLOUD CORPORATION) 4,155 Reputation points Microsoft External Staff Moderator
    2026-08-03T04:31:39.9366667+00:00

    Hi @Marty Sheehan ,

    Thank you for reaching out.

    Excel VBA sends email through Outlook by creating an Outlook COM object (e.g., CreateObject("Outlook.Application")). This requires classic Outlook - the new Outlook for Windows doesn't support VBA or COM automation. When Windows can't find a properly registered classic Outlook, it may fall back to an old Office 2016 installer entry, which matches what you're seeing.

    Could you help me confirm a few things?

    • Which Outlook are you using? If your Outlook has a "New Outlook" toggle in the top-right corner and it's turned on, you're on new Outlook.
    • If classic Outlook is installed, does it open normally when launched by itself (outside of Excel)?
    • What is the exact text of the installation prompt, or could you share a screenshot?

    Two things you can try in the meantime:

    • If you're on new Outlook, switch the toggle off (or install classic Outlook) and run the macro again.
    • If classic Outlook is installed and opens fine, run a repair: Windows Settings > Apps > Installed apps > Microsoft 365 / Office > Modify > Online Repair. This fixes stale COM registrations left behind by an old Office 2016 installation.

    One note: "Microsoft Outlook 16.0 Object Library" in the VBA editor does not mean Outlook 2016 - Office 2019, 2021, and Microsoft 365 all use version 16.0. Also, Outlook 2016 reached end of support on October 14, 2025, so I don't recommend reinstalling it.

    Look forward to your reply.

    Was this answer helpful?


  4. Bruce (SqlWork.com) 84,856 Reputation points
    2026-07-31T17:26:10.69+00:00

    Probably you are using the new outlook which does not support vba (com) automation. You will need to install a classic version of outlook for the automation to work.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.