Forum Discussion
Excel - How to remove "Search the menus" in right-click menu options
- Nothing_Left_to_LoseOct 14, 2022Brass Contributor
The VBA code to remove an item from the Cell right-click menu is only one line.
A possible catch is that the name of the item to remove must match exactly with what appears on the menu.
And, and, and any character that is underlined in that items name must have the "&" sign in front it.
So the code is...
'---
Sub RelievePain()
Application.CommandBars("Cell").Controls("Search the Menus").Delete
End Sub
'---
The control name in the above must have the "&" sign entered (no quote marks)
As I dont have the control on my excel version, it is up to you to place it properly.
Matching the case of the characters on the menu should also be done.
'---
Nothing Left to Lose
https://1drv.ms/u/s!Au8Lyt79SOuhZw2MCH7_7MuLj04?e=sAwbHU
(free excel programs)- hgitz_GujJan 30, 2023Copper Contributor
That was a a tip in the right direction, BUT I have listed all Application.CommandBars and there is no "Search the menus" entry. I have also tried MenuRighter with the same result. (About the & sign issue, I looked at the menu entries one by one instead of searching).
It seems "Search the menus" is hidden somewhere else.
Microsoft® Excel® for Microsoft 365 MSO (Version 2211 Build 16.0.15831.20220) 32-bit
- JanyGJan 31, 2023Copper Contributor
No luck removing it but I found workaround for now. Pressing "tab" key on the keyboard moves the cursor out of the search box so one can use shortcut keys again.