Disappearing Ribbon Buttons

Written by Allen Wyatt (last updated April 10, 2021)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365


2

Raffaele has macros in his Personal workbook. If he assigns these macros to buttons on the ribbon, after a while (a few hours up to a full day) the buttons disappear. The macros are still there; it is just the buttons that disappear from the ribbon. Raffaele wonders how he can prevent this.

It is entirely possible that your Personal workbook is being overwritten without your knowledge. This should only happen if you are connected to a network and someone else is responsible for your network, though it may happen if you have the Personal workbook stored on a "drive" that is actually in the cloud, such as with OneDrive or with Dropbox. In any of these situations, if someone else accesses your Personal workbook and that access results in it being overwritten, then your changes would be in danger.

It is also possible that your Personal workbook is corrupted in some way. The easiest way to figure this out is to locate, within Window and while Excel is shut down, the Personal workbook and rename it to something else. Then, restart Excel, add a macro or two, make your ribbon changes, and save those changes. Monitor your system for a couple of days and see if the problem crops up again.

Finally, you may want to check your macros to see if there is a scoping issue being manifest. If you assign a macro to the Quick Access Toolbar, you can indicate if the macro should be accessible from All Documents or just from the currently active workbook. If you give the change a limited scope, then you may believe that the change is not "holding," when in fact it is simply not visible in whatever workbook you may have open at the time.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (13846) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Finding a Missing Toolbar

A few methods for finding an errant toolbar in Word.

Discover More

Controlling the Printer in a Macro

Need to access the advanced capabilities of a printer from within an Excel macro? You may be out of luck, unless you ...

Discover More

Editing the Same Cell in Multiple Sheets

When creating a workbook, you may need to make changes on one worksheet and have those edits appear on the same cells in ...

Discover More

Professional Development Guidance! Four world-class developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. The authors show how to consistently make the right design decisions and make the most of Excel's powerful features. Check out Professional Excel Development today!

More ExcelTips (ribbon)

SUMIF Doesn't Recalc Automatically

What are you to do if you suspect that some of your worksheet functions aren't recalculating automatically? Here's some ...

Discover More

Turning Off Display of Zeros for All Worksheets

Some people like zero values displayed; others do not. Excel allows you to easily turn the display on or off for a single ...

Discover More

Turning Off Paste Options

Paste some information into a worksheet and Excel helpfully displays some options related to the paste operation. If you ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is three less than 3?

2021-04-11 21:15:01

Tomek

Alternatively, you can use export/import customizations, which is available under Customize the Ribbon or Quick Access Toolbar. For Excel the file created has a default name Excel Customizations.exportedUI and you can store it anywhere on your system.

I don't know if the result of this approach is equivalent to backing-up/restoring .officeUI files. If someone knows a difference please reply to this comment.


2021-04-10 07:01:53

Graham Rice

I have encountered this problem occasionally both in Excel and Word. I have never found the reason, but have been able to create a plan to recover from the situation. My Personal workbook is stored locally on my laptop, with no network or cloud connections.

Ribbon customization files are stored as Excel.officeUI, Word.officeUI, etc files in
C:\Users\User-Name\AppData\Local\Micrososft\Office
In some cases they may be stored like Excel16.officeUI, where "16" refers to Office 2019.

These customization files normally only exist AFTER you have customized a ribbon, they may not exist if you have never customized.
When the disappearance of the ribbon customizations occurs these xxx.officeUI files seem to become corrupted. It may be possible to determine from their "Date Modified" which event caused the problem.

Recovery Plan
==========
1) Create your customizations again, hopefully for the last time.
2) Go to C:\Users\User-Name\AppData\Local\Micrososft\Office
3) Take backup copies of all of the xxx.officeUI files. Store them in another partition or drive.
4) Next time that a customization disappears simple use a backup xxx.officeUI file to replace the corrupted file.


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.