Disable "Cell" group at excel 2007 Ribbon - Home Tab

hocs

New Member
Joined
Nov 13, 2009
Messages
33
Hi,

How do i disable the "Cell" group (Delete / Insert / Format functions) under Home Tab at Excel 2007 Ribbon for a particular worksheet? and enable this group when this worksheet is deactivated?
(i do not want user to delete / insert or format for a particular worksheet). I have disable this from right click short cut but user can still delete / insert from Home Tab.

thanks!
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Hi

Not Sure I fully understand but an easy way would be to protect worksheet and change the allowables to suite.

1. Review
2. Protect Sheet



regards

Saltkev
 
Upvote 0
Hi

Not Sure I fully understand but an easy way would be to protect worksheet and change the allowables to suite.

1. Review
2. Protect Sheet



regards

Saltkev

Hi Saltkev,
Thanks for your suggestion but excel protection is weak. Furthermore, i have macro buttons on that sheet for users to click + users to insert datas into specific rows and columns.
I don't want users to insert columns in between those specific columns. eg: users are not allowed to insert a column in between column A to column Z.
Any suggestion?
 
Upvote 0
Hi

Not sure if this will help any, as it still uses, excel sheet protection, Can be used with a command button or as a spread sheet event.

Code:
With Sheets("Sheet1")
    .Cells.Locked = False
    .Columns("A:Z").Locked = True
    .Protect Password:="mypassword"
End With


regards

Saltkev
 
Upvote 0
You would need to use XML in the CustomUI to remove the Home tab, recreate your own version and then use a getEnabled callback to enable the controls you add when you want (invalidating the Ribbon in the workbook's SheetDeactivate and Sheetactivate events). You can't disable controls just for one worksheet in a book without some work.
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,289
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top