Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Excell 2003. I have a worksheet that is protected, and people are allowed to
input data in the non-protected cells. Is there any way too highlight the whole worksheet and delete the information that is in the non-protected cells with out deleted the formulas in the protected cells? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try this
Sub ClearUnlockedCells() Dim myRange As Range Dim r As Range Dim aWS As Worksheet Set aWS = ActiveSheet Set myRange = Nothing For Each r In aWS.UsedRange If Not r.Locked Then If myRange Is Nothing Then Set myRange = r Else Set myRange = Union(myRange, r) End If End If Next r If Not myRange Is Nothing Then myRange.ClearContents End If End Sub -- HTH, Barb Reinhardt If this post was helpful to you, please click YES below. "Joe Clark" wrote: Excell 2003. I have a worksheet that is protected, and people are allowed to input data in the non-protected cells. Is there any way too highlight the whole worksheet and delete the information that is in the non-protected cells with out deleted the formulas in the protected cells? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Where do I input this information?
"Joe Clark" wrote: Excell 2003. I have a worksheet that is protected, and people are allowed to input data in the non-protected cells. Is there any way too highlight the whole worksheet and delete the information that is in the non-protected cells with out deleted the formulas in the protected cells? |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Alt F11
Insert a module Paste this in. Barb Reinhardt "Joe Clark" wrote: Where do I input this information? "Joe Clark" wrote: Excell 2003. I have a worksheet that is protected, and people are allowed to input data in the non-protected cells. Is there any way too highlight the whole worksheet and delete the information that is in the non-protected cells with out deleted the formulas in the protected cells? |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I posted the info into the module, how do I run the module?
Thanks "Barb Reinhardt" wrote: Alt F11 Insert a module Paste this in. Barb Reinhardt "Joe Clark" wrote: Where do I input this information? "Joe Clark" wrote: Excell 2003. I have a worksheet that is protected, and people are allowed to input data in the non-protected cells. Is there any way too highlight the whole worksheet and delete the information that is in the non-protected cells with out deleted the formulas in the protected cells? |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Select the sheet you want to update. Press F8. Run the macro.
Barb Reinhardt "Joe Clark" wrote: I posted the info into the module, how do I run the module? Thanks "Barb Reinhardt" wrote: Alt F11 Insert a module Paste this in. Barb Reinhardt "Joe Clark" wrote: Where do I input this information? "Joe Clark" wrote: Excell 2003. I have a worksheet that is protected, and people are allowed to input data in the non-protected cells. Is there any way too highlight the whole worksheet and delete the information that is in the non-protected cells with out deleted the formulas in the protected cells? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Groups and Protected Worksheets - know if protected | Excel Discussion (Misc queries) | |||
protected cells can be deleted?! | Excel Discussion (Misc queries) | |||
how can worksheets be deleted in Excel? | Excel Worksheet Functions | |||
How use info in Excel shared worksheets to create new worksheets | Excel Worksheet Functions | |||
how do i get back deleted worksheets? | Excel Discussion (Misc queries) |