Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Read-Only
Is there a way to set all worksheets
to read only? Thanks - Kirk |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Read-Only
Sub kirkm()
For Each ws In ActiveWorkbook.Sheets ws.Protect Next 'ws End Sub To unprotect them, change the term "Protect" to "Unprotect". Or you can manually unprotect each sheet using Excel's menu: Tools|Protection|Unprotect Sheet... -- Jay "kirkm" wrote: Is there a way to set all worksheets to read only? Thanks - Kirk |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Read-Only
Follow-up information:
The procedure in my previous post protects all cells that are "Locked". Because the default for all worksheet cells is Locked, the procedure should work fine whenever the Locked property has not been adjusted in any workbook cells. However, if your worksheets include any 'unlocked' cells, those cells will not receive read-only protection. Check or change the Locked property of a cell by: Format|Cells|Protection Tab|Locked checkbox... -- Jay "kirkm" wrote: Is there a way to set all worksheets to read only? Thanks - Kirk |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Read-Only
On Mon, 5 Mar 2007 16:24:18 -0800, Jay
wrote: Sub kirkm() For Each ws In ActiveWorkbook.Sheets ws.Protect Next 'ws End Sub To unprotect them, change the term "Protect" to "Unprotect". Or you can manually unprotect each sheet using Excel's menu: Tools|Protection|Unprotect Sheet... Thanks Jay, that just what I wanted. Haven't got any locked cells so that shouldn't be a factor. Cheers - Kirk. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
I have a read only xl file, I need it to be read and write | Excel Discussion (Misc queries) | |||
Read-write/Read-only | Excel Discussion (Misc queries) | |||
XCEL FILE REC'D AS READ ONLY -- HOW TO NOT BE "READ ONLY" | Excel Discussion (Misc queries) | |||
How can a file be converted from Read-Only to Read/Write | Excel Discussion (Misc queries) |