Please Note: This article is written for users of the following Microsoft Excel versions: 2007 and 2010. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Problem with Missing Context Menu Option.

Problem with Missing Context Menu Option

by Allen Wyatt
(last updated December 7, 2015)

6

Rita has encountered a situation at her workplace that has her scratching her head. They have an employee who can right-click on any cell and the Format Cells option is not available on the resulting Context menu. Rita is wondering what is necessary to get the Context menu option back.

It is possible that the Context menu that is displayed when you right-click on a cell has, over time, become modified in some way. You can reset this particular Context menu by using a very simple macro:

Sub ResetContextMenu()
    CommandBars("Cell").Reset
End Sub

If this does not do the trick, or if the menu inexplicably changes at some future point, the culprit could very well be some sort of add-in or a particular macro in a workbook. Determining which of the macros is doing the modification can take some serious detective work. If you can access the macros in the add-in or workbook, you might want to just search through the VBA code to see if you can find the text "CommandBars" to see what is being changed.

If you cannot access the macro code (perhaps the add-in or workbook is protected), then you will need to go through a trial-and-error process where you stop the loading of the add-ins, one by one, until you determine which one causes a change in the Context menu.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (11786) applies to Microsoft Excel 2007 and 2010. You can find a version of this tip for the older menu interface of Excel here: Problem with Missing Context Menu Option.

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

Checking for an Entry in a Cell

You may be looking for a way to have a formula determine if a particular cell has anything in it. Here's how you can find the ...

Discover More

Resizing Table Columns with the Mouse

Once a table is inserted in your document, you can use the mouse to adjust the width of columns. The effect the mouse pointer ...

Discover More

WordTips Archives (Special Offer)

WordTips is a weekly newsletter that provides tips on how to best use Microsoft's word processing software. At the ...

Discover More

Program Successfully in Excel! John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out Excel 2013 Power Programming with VBA today!

More ExcelTips (ribbon)

Slash Key No Longer Works as Expected

Press the slash key and Excel may display a series of keyboard commands near the ribbon. If this behavior drives you nuts, ...

Discover More

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 Autosave ...

Discover More

Tab Key Jumps a Screen at a Time

Have you ever pressed the Tab key, expecting to move to the next cell in your worksheet, only to have Excel completely change ...

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}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 8Mpixels. 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 more than 5?

2016-06-09 14:14:40

Tim Arnold

That worked! Thank you.


2016-03-06 11:45:42

Peter Atherton

Lawrie

Joe's sugestion be;ow might work

CommandBars("Sheet").Reset

I ran this in the immediate window and it did not do any harm; if it does not work try 'Sheets' instead


2015-04-27 07:05:56

Lawrie

A colleague has this command bar issue. We fixed it for cells, rows and columns using the suggstion above and substituting rows and columns for 'cells'. However she has still lost the right click context menu on the worksheet tabs at the bottom or workbooks. Any ideas how to fix this last part?

TIA


2015-03-03 14:42:53

Ross

The Immediate Pane of the VBE appears when (in the VBE window) you click on "Immediate Window Ctrl+G", or just Ctrl+G.


2015-03-03 07:18:25

Barry

I haven't tried this but running "CommandBars("Cell").Reset" in the Immediate Pane of te VBE would be slightly easier/quicker.


2014-09-15 15:25:38

Joe

This one worked!!!!! However, there are a couple of other steps:
- Press ALT +F11
- Open “Insert”
- Select “Module”
Copy/Paste this:
Sub ResetContextMenu()
CommandBars("Cell").Reset
End Sub
- Press the Run button on the top tool bar
- Close out of VB


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.