Excel VBA Office 2019 Class not Registered Run time Error 2147721164 (80040154)

Anonymous
2021-07-19T23:50:57+00:00

Hi

I have a macro that used to run fine and now gives me the error message as shown below

I need to open up outlook and then loop through a database to send a customized emails to each person

I created a brand new spreadsheet so there is nothing in it except the macro

it blows up and gives me the error message on the line

Set Testmail_object = CreateObject("Outlook.Application")

I have googled this and no one seems to address the problem

Thank you!

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

11 answers

Sort by: Most helpful
  1. Anonymous
    2021-07-20T19:35:58+00:00

    Glad you have it working now,

    Kind Regards,

    Elise

    1 person found this answer helpful.
    0 comments No comments