Thanks for the tip. I am having difficulty applying this to only a few
designated sheets, rather than to the whole workbook. Any suggestions on that?
Private Sub Worksheet_Change(ByVal Target As Range)
Dim Ctrl As Office.CommandBarControl
For Each Ctrl In
Worksheets("PDB_1").Application.CommandBars.FindControls(ID:=21)
Ctrl.Enabled = False
Next Ctrl
End Sub
Thanks,
IP
"Mike H" wrote:
> Hi,
>
> All the techniques are described here
>
> http://www.rondebruin.nl/menuid.htm
>
> Mike
>
> "iperlovsky" wrote:
>
> > I am attempting to use this sub routine to disable the cut control under the
> > Edit menu and all the sub menus, but the menu is still allowing me to cut. I
> > have Excel 2003. Any help is appreciated.
> >
> > Sub MenuControl_False()
> > Dim Ctrl As Office.CommandBarControl
> > For Each Ctrl In Application.CommandBars.FindControls(ID:=21)
> > Ctrl.Enabled = False
> > Next Ctrl
> > End Sub
> >