Share via

Addin with workbook_open

Anonymous
2016-05-06T14:22:06+00:00

I have a number of addins that I have set up with Workbook_Open code to add an icon or icons to the ADD-IN section of the ribbon.  They've worked perfectly for ages.

I have a new laptop and have been running through the process to replicate the setup and each of the relevant addins is now stubbornly refusing to successfully run the Workbook_Open code.  The code works perfectly when selected AFTER the addin has been loaded, but it has always, previously, run automatically.

I must have a setting somewhere that I've missed and it's extremely frustrating.

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

Answer accepted by question author

Anonymous
2016-05-06T16:12:07+00:00

Make sure you have enabled events:

Sub CheckAndResetEvents()

    If Not Application.EnableEvents Then

        MsgBox "Events were off, but I'm fixing it now!"

        Application.EnableEvents = True

    Else

        MsgBox "Events were on, so there is something else going on..."

    End If

End Sub

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful