Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Is there any way to clear unprotected content from the sheet that also
contains formulas in protected fields quickly rather than going column by column and delete unprotected data? Thanks for any help that you can provide.. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
One way is with a macro.
Sub UnlockedCells() Dim wk As Worksheet Dim cl As Range For Each cl In wk.UsedRange If cl.Locked = False Then cl.ClearContents End If Next Next End Sub This assumes that you have sheet protection set with option "select unlocked cells" checked. Gord Dibben MS Excel MVP On 11 Nov 2006 07:05:48 -0800, "Amean1" wrote: Is there any way to clear unprotected content from the sheet that also contains formulas in protected fields quickly rather than going column by column and delete unprotected data? Thanks for any help that you can provide.. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Use the Merge & Center Button with unprotected Cells - sheet prote | Setting up and Configuration of Excel | |||
Changing a text field to a date field | New Users to Excel | |||
Stop text from stringing into next field when empty | Excel Worksheet Functions | |||
Stop text from stringing into next field when empty | Excel Worksheet Functions | |||
How do I clear cell content when excel document is closed? | Excel Worksheet Functions |