Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try this:
Sub delunlocked() Dim aktter As Range, acell As Range Set aktter = Selection.CurrentRegion For Each acell In aktter If Not acell.Locked Then acell.ClearContents Next acell End Sub Regards, Stefi RobN ezt *rta: Could someone please provide me with some code to clear contents of all unlocked cells in a worksheet? Rob |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Delete contents in cells with macro | Excel Discussion (Misc queries) | |||
Delete contents of cells | Excel Worksheet Functions | |||
Moving from unlocked cells to unlocked cells in an excel form | Excel Worksheet Functions | |||
Delete contents of unlocked cells in another worksheet | Excel Discussion (Misc queries) | |||
How do I delete the contents of unprotected cells only? | Excel Discussion (Misc queries) |