Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Mike,
Thanks for the information, this doesn't seem to work, am I supposed to put the name of the worksheet between the parenthesis after ClearCells? I am very new at macros and the language, so any help would be further appreciated. Candi C "Mike H" wrote: Hi, Here's one way Sub ClearCells() ActiveSheet.Protect On Error Resume Next ActiveSheet.UsedRange = "" On Error GoTo 0 ActiveSheet.Unprotect End Sub Mike "CandiC" wrote: does anyone know if it is possible to write a macro to clear all unlocked cells by the click of a button on a user form? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
split post code (zip code) out of cell that includes full address | Excel Discussion (Misc queries) | |||
Code to conditional format all black after date specified in code? | Excel Discussion (Misc queries) | |||
Drop Down/List w/Code and Definition, only code entered when selec | Excel Worksheet Functions | |||
Convert a Number Code to a Text Code | Excel Discussion (Misc queries) | |||
copying vba code to a standard code module | Excel Discussion (Misc queries) |