10-11-2021
10:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
10-11-2021
10:28 AM
I get the following error because the object is not set at the line aai.Activate.
This way seems to work though. I have executed multiple times in a row with no error.
Dim aai As ApplicationAddIn
Set aai = ThisApplication.ApplicationAddIns.ItemById("{48B682BC-42E6-4953-84C5-3D253B52E77B}")
aai.Deactivate
Set aai = Nothing
ThisApplication.ApplicationAddIns.ItemById("{48B682BC-42E6-4953-84C5-3D253B52E77B}").Activate
Thank you.
Rafael