+ Reply to Thread
Results 1 to 3 of 3

Excel VBA error trying to create new Outlook instance [2 versions of Outlook installed]

  1. #1
    Registered User
    Join Date
    12-13-2023
    Location
    Mansfield, Ohio
    MS-Off Ver
    2019
    Posts
    12

    Excel VBA error trying to create new Outlook instance [2 versions of Outlook installed]

    Microsoft Visual Basic
    Run-time error '-2146959355 (80080005)':
    Server execution failed

    The above error occurs in Microsoft Office 2019 Excel while running the following code:

    Please Login or Register  to view this content.
    After troubleshooting with the user attempting to run the code, we determined that there was a new version of Outlook that she was using (which was open), that is different from the original version. Both versions show up on the system, but the new version has "(new)" appended after it. While this new version is open, the above code does not find an Outlook instance and therefore tries to open the old version, which from the error I can only assume will not open if the newer version is already open.

    Is there a better way to check for more up-to-date versions of the same application in order to determine if the application is already open before trying to open the application, or a better way to open the application that won't interfere with other open instances of the application? The current workaround was to ensure that the new version of Outlook was not automatically turned on (she had a toggle button for the new version) when she opened Outlook. The VBA works fine while the original version is open, or Outlook is closed but the toggle for the new version isn't on.

    The purpose of the code is to automatically create an email that is sent with information from the userform that this code is a part of, namely as a notification system.
    Last edited by 6StringJazzer; 12-13-2023 at 10:30 PM. Reason: enhanced title

  2. #2
    Forum Contributor Gtrtim112's Avatar
    Join Date
    04-12-2013
    Location
    Alabama, USA
    MS-Off Ver
    Excel 2016
    Posts
    332

    Re: Excel VBA error trying to create new Outlook instance [2 versions of Outlook installed

    I'm experiencing the same issue. My VBA code opens Outlook and generates a new email with no issue. It will not work if I switch over to the new Outlook version.
    I've subscribed to this thread in hopes you get a reply.

  3. #3
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    2,047

    Re: Excel VBA error trying to create new Outlook instance [2 versions of Outlook installed

    Please Login or Register  to view this content.
    My understanding is that "New Outlook" doesn't support VBA.


    https://feedbackportal.microsoft.com...c-000d3ae46fcb
    Last edited by ByteMarks; 02-02-2024 at 12:48 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Run-time error '4605' for VBA excel to create mail in Outlook
    By fantasylo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-05-2021, 06:57 AM
  2. Open Excel File from Outlook to Active Excel Instance
    By masterell in forum Excel General
    Replies: 0
    Last Post: 06-10-2014, 10:28 AM
  3. Open Excel File from Outlook to Active Excel Instance
    By tabascojoe in forum Excel General
    Replies: 2
    Last Post: 06-10-2014, 10:24 AM
  4. Create Outlook Reminder on Excel and transfered to outlook by macro
    By Benjamin2008 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-21-2013, 03:23 PM
  5. Active X Component Can't Create Object: Multiple Excel Instance Error
    By schwimms in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-29-2013, 12:51 PM
  6. [SOLVED] create an outlook reciepient in excel VB without getting an error
    By gp133 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-06-2006, 08:20 AM
  7. [SOLVED] Excel-created Word instance hanging on thru Outlook?
    By Ed in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-03-2005, 11:35 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1