J
James
I am currently using vba to disable menu items, using the
Application.CommandBars syntax, for example:
Application.CommandBars("Edit").Controls(2).Enabled = False
This is having an effect on all of Excel.
Is there a way I can disable it only for the Active Workbook.
I tried this:
ActiveWorkbook.CommandBars("Edit").Controls(2).Enabled = False
but I am getting an error "obejct variable not set" run time 91
Thanks
Application.CommandBars syntax, for example:
Application.CommandBars("Edit").Controls(2).Enabled = False
This is having an effect on all of Excel.
Is there a way I can disable it only for the Active Workbook.
I tried this:
ActiveWorkbook.CommandBars("Edit").Controls(2).Enabled = False
but I am getting an error "obejct variable not set" run time 91
Thanks