I'm trying to create a macro to remove multiple items from the right click menu within a sheet.
Thus far I have:
Dim Ctrl As Office.CommandBarControl
For Each Ctrl In Application.CommandBars.FindControls(ID:=855)
Ctrl.Enabled = False
How can I in-cooperate multiple menu items to be disabled? i.e. 855, 478, 1576
Thus far I have:
Dim Ctrl As Office.CommandBarControl
For Each Ctrl In Application.CommandBars.FindControls(ID:=855)
Ctrl.Enabled = False
How can I in-cooperate multiple menu items to be disabled? i.e. 855, 478, 1576