Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Protecting certain cells
I am writing a program where i need to clear, and color certain cells,
but want the user to have read only access on this particular page. When i all the cells i want locked and I protect the sheet, my program keeps getting stopped on the lines of code that clears, and colors these cells. How would i keep these cells protected but still be able to clear and color them. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Protecting certain cells
Hi William,
You can just unprotect and protect the sheet within your macro, e.g.: Sub Test() Pass="YourPassword" Worksheets("Sheet1").Unprotect Pass 'your code here Worksheets("Sheet1").Protect Pass End Sub Regards, KL "William Spence" wrote in message ups.com... I am writing a program where i need to clear, and color certain cells, but want the user to have read only access on this particular page. When i all the cells i want locked and I protect the sheet, my program keeps getting stopped on the lines of code that clears, and colors these cells. How would i keep these cells protected but still be able to clear and color them. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
PROTECTING CELLS | Excel Discussion (Misc queries) | |||
Protecting cells | Excel Discussion (Misc queries) | |||
protecting certain cells | Excel Discussion (Misc queries) | |||
Protecting Cells | Excel Discussion (Misc queries) | |||
Protecting Cells | Excel Worksheet Functions |