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

Paragraph Numbers in a TOC

Word is great at creating a simple, straightforward table of contents. If you want a more non-traditional TOC, however, ...

Discover More

Generating a List of Macros

Got a workbook that has lots and lots of macros associated with it? Here's a way you can get a list of all of those ...

Discover More

Inserting a Sound File in Your Worksheet

Some worksheets are better understood through the spoken word or with musical accompaniment. Sound files can be easily ...

Discover More

Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!

More ExcelTips (ribbon)

Changing an Invalid Autosave Folder

Excel allows you to specify where it stores various files used by the program. One location you can specify is where ...

Discover More

Disabling Page Layout View

Excel allows you to display your workbooks using a couple of different views. If you want to disable one of the views, it ...

Discover More

Displaying Excel's Developer Tab

The Developer tab of the ribbon is the gateway to many advanced features in Excel, including those features related to ...

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 8 - 5?

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.