vba code
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?
|