+ Reply to Thread
Results 1 to 8 of 8

Menu bar 'Reset' not working in Excel 2019

  1. #1
    Forum Contributor
    Join Date
    07-21-2021
    Location
    Norfolk, UK
    MS-Off Ver
    Excel 2003, 2007, 2013, 2019
    Posts
    212

    Menu bar 'Reset' not working in Excel 2019

    I use several ancient Add-Ins, built before the introduction of the Ribbon. The standard way to prevent the menu bar from getting cluttered with repeat versions of the same menu, was to use the Reset function on closing Excel.

    Please Login or Register  to view this content.
    This Reset function fails to operate in my copy of Excel 2019.

    Does anyone have an alternative solution?
    Regards,

    Stephen

  2. #2
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,222

    Re: Menu bar 'Reset' not working in Excel 2019

    Can you publish the workbook with the procedures? I only mean the procedures related to building toolbar items and removing them.

    At one time (before 2007 version) I was ready to kill for using Reset.

    Artik

  3. #3
    Forum Contributor
    Join Date
    07-21-2021
    Location
    Norfolk, UK
    MS-Off Ver
    Excel 2003, 2007, 2013, 2019
    Posts
    212

    Re: Menu bar 'Reset' not working in Excel 2019

    Thank you Artik. Here is the essential parts of the code from one of the Add-Ins. Sorry, it is quite extensive.

    Please Login or Register  to view this content.
    Last edited by swaatacba; 05-23-2022 at 06:30 AM.

  4. #4
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,222

    Re: Menu bar 'Reset' not working in Excel 2019

    Try it:
    1. rename the procedure "Reset" e.g. to "ResetBar"
    2. in the procedure Workbook_BeforeClose call:
    Please Login or Register  to view this content.
    3. in the listBars procedure, change the line:
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    4. the body of the ResetBar procedure:
    Please Login or Register  to view this content.
    If it still doesn't work, I'll come back to the problem in a few hours as I'll be busy now.

    Artik

  5. #5
    Forum Contributor
    Join Date
    07-21-2021
    Location
    Norfolk, UK
    MS-Off Ver
    Excel 2003, 2007, 2013, 2019
    Posts
    212

    Re: Menu bar 'Reset' not working in Excel 2019

    Quote Originally Posted by Artik View Post
    Try it:
    4. the body of the ResetBar procedure:
    Please Login or Register  to view this content.
    If it still doesn't work, I'll come back to the problem in a few hours as I'll be busy now.

    Artik
    Sorry Artik, but the code fails at point 4 above. But the notion of renaming Reset() to ResetBar() is good and I'll definitely keep it.

  6. #6
    Forum Contributor
    Join Date
    07-21-2021
    Location
    Norfolk, UK
    MS-Off Ver
    Excel 2003, 2007, 2013, 2019
    Posts
    212

    Re: Menu bar 'Reset' not working in Excel 2019

    Further to my post above.

    1. The ResetBar() fails when called from the Workbook_BeforeClose procedure, but does NOT fail when called directly.

    2. A memory of the previous state of the Menu tree is still retained and added to when I close and reopen Excel. The branches of this menu are getting longer and longer.

    3. Curiously this does not happen in Excel 2013. I only observe it in Excel 2019.
    Last edited by swaatacba; 05-24-2022 at 04:58 AM.

  7. #7
    Forum Contributor
    Join Date
    07-21-2021
    Location
    Norfolk, UK
    MS-Off Ver
    Excel 2003, 2007, 2013, 2019
    Posts
    212

    Re: Menu bar 'Reset' not working in Excel 2019

    Quote Originally Posted by Artik View Post
    Try it:
    1. rename the procedure "Reset" e.g. to "ResetBar"
    2. in the procedure Workbook_BeforeClose call:
    Please Login or Register  to view this content.
    3. in the listBars procedure, change the line:
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    4. the body of the ResetBar procedure:
    Please Login or Register  to view this content.
    If it still doesn't work, I'll come back to the problem in a few hours as I'll be busy now.

    Artik
    It took a little testing to identify what worked. It turns out the renaming of the Reset procedure, suggested by you, is crucial. However, to reiterate your proposal at point 4 fails.

    Nevertheless the following code works for each of the addins.

    Please Login or Register  to view this content.
    I appreciate your deprecating the use of Reset, but in this case I need to stick with what works.
    Last edited by swaatacba; 05-25-2022 at 11:21 AM.

  8. #8
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,222

    Re: Menu bar 'Reset' not working in Excel 2019

    I remember that I did not solve your problem. But in my testing, I ran into some strange problems that occurred in Add-Inn, but not in XLSM (I dealt with toolbars at least 15 years ago, so much is forgotten). It's good that you have a solution. When I find some time, I'll try to revisit this problem.

    Artik

+ 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. [SOLVED] Adding products of the pairs not working in excel 2019
    By bulina2k in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-02-2022, 08:41 AM
  2. [SOLVED] Excel 2019 Menu Bar not showing
    By Willows59 in forum Excel General
    Replies: 0
    Last Post: 12-13-2021, 06:04 AM
  3. Replies: 6
    Last Post: 06-04-2020, 11:02 AM
  4. VBA - Copy Sunburst Chart to PPT (not working in Excel 2019)
    By grcaz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-05-2020, 08:22 PM
  5. Reflect TBF vacancies over 2018-2019/2019-2020 budget year
    By jennah63 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-28-2019, 07:32 PM
  6. [SOLVED] Reset menu wanted
    By Avi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-02-2005, 06:20 PM
  7. [SOLVED] Reset Right Click Menu
    By Ronbo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-12-2005, 08:06 PM

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