Pre-Ribbon AddIns - Fail to Reset the AddIns Tab

Stephen W Allen

New Member
Joined
Jul 21, 2021
Messages
20
Office Version
  1. 2019
Platform
  1. Windows
I created 4 AddIns, around 2000 to 2007, which have not been upgraded to Ribbon status, but have still been accessible in the AddIns tab. Each, of these AddIns, is based on a standard menu.

Each AddIn contains an instructiom in the Wookbook_BeforeClose procedure-
VBA Code:
Application.CommandBars("Worksheet Menu Bar").Rese
t. This has workked successfully up until Excel 2013.

In Excel 2019 it fails, in the sense, that when Excel is reopened is duplicates part of the menu. After several iterations the menu becomes clogged with repetitions. It appears that Excel takes an image of the menu tree (or part of it ) and adds to it each time the user reopens Excel. Is there a VBA method to stop this?
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
A gentle reminder:

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at:

If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
A gentle reminder:

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at:

If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
Thank you Rory. I should have provided the cross posting information and the link. However, in my defence, I have changed the emphasis of the question. Also, you may note that
 
Upvote 0
The solution turned out to be relatively simple.

The original Sub was called Reset() which generates a confusion with the Reset instruction. Renaming the Sub as follows did the trick.

VBA Code:
Sub ResetBar()

Application.CommandBars("Worksheet Menu Bar").Reset

End Sub
 
Upvote 0
Wouldn't it be worth the time to update them to use the Ribbon?
 
Upvote 0
Wouldn't it be worth the time to update them to use the Ribbon?
For a couple of them, yes. However, these are fairly substantial programs and really need a review before converting them to a ribbon.

Also, finding suitable icons for the active procedures and functions can be quite tedious. No doubt, I'll get around to it if retirement becomes too boring.

Stephen
 
Upvote 0

Forum statistics

Threads
1,223,905
Messages
6,175,297
Members
452,633
Latest member
DougMo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top