Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How do I disable to insert and delete column in a sheet WITHOUT
protecting the sheet? For example, if I right click on a excel sheet, I see "Insert" & "Delete" menu items, which I would like to grey out or disable it. And I want to achieve this without protecting the sheet. Any help is appreciated. Thanks in advance.. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
See
http://www.rondebruin.com/menuid.htm Do not forget the shortcuts -- Regards Ron de Bruin http://www.rondebruin.nl "ndalal" wrote in message oups.com... How do I disable to insert and delete column in a sheet WITHOUT protecting the sheet? For example, if I right click on a excel sheet, I see "Insert" & "Delete" menu items, which I would like to grey out or disable it. And I want to achieve this without protecting the sheet. Any help is appreciated. Thanks in advance.. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Ron, however I have a couple of problems..
I'm trying to use the following code to disable every "Copy" control in the Menu Bar, Toolbars and right click menus Sub MenuControl_False() ' Excel 2000 - 2003 Dim Ctrl As Office.CommandBarControl For Each Ctrl In Application.CommandBars.FindControls(ID:=19) Ctrl.Enabled = False Next Ctrl End Sub However I need to disable this only for a particular sheet, not all the sheets. How can I achieve this? Also for insert column, I'm only able to disable from menu bar, not from the right click menus. Any clue? Please bear with me as I'm new to excel programming. Thanks.... |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi ndalal
However I need to disable this only for a particular sheet, not all the sheets. How can I achieve this? See the tips (number 3) http://www.rondebruin.com/menuid.htm#Information Also for insert column, I'm only able to disable from menu bar, not from the right click menus. Any clue? The Id is for insert in the Cell menu is 3181 Application.CommandBars("Cell").FindControl(ID:=31 81).Enabled = False -- Regards Ron de Bruin http://www.rondebruin.nl "ndalal" wrote in message ups.com... Thanks Ron, however I have a couple of problems.. I'm trying to use the following code to disable every "Copy" control in the Menu Bar, Toolbars and right click menus Sub MenuControl_False() ' Excel 2000 - 2003 Dim Ctrl As Office.CommandBarControl For Each Ctrl In Application.CommandBars.FindControls(ID:=19) Ctrl.Enabled = False Next Ctrl End Sub However I need to disable this only for a particular sheet, not all the sheets. How can I achieve this? Also for insert column, I'm only able to disable from menu bar, not from the right click menus. Any clue? Please bear with me as I'm new to excel programming. Thanks.... |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Insert tab disable | Setting up and Configuration of Excel | |||
disable Insert Worksheet | Excel Worksheet Functions | |||
insert row / insert column command buttons | Excel Worksheet Functions | |||
Disable Insert Column without protecting sheet. | Excel Programming | |||
How to completely disable Insert, Copy and Cut? | Excel Programming |