Hello,
Does anyone knows how to set VBA to clear a range but leave a specific value?
I was using this:
Sub ClearSheet()
' ClearSheet Macro
Range("B6:H25").Select
On Error GoTo Error_handler:
Selection.SpecialCells(xlCellTypeConstants, 1).Select
Selection.ClearContents
Error_handler:
MsgBox "Cleared"
End Sub
but it only clears numbers. I need it to clear everything with exception of a specific value.
thank you
Does anyone knows how to set VBA to clear a range but leave a specific value?
I was using this:
Sub ClearSheet()
' ClearSheet Macro
Range("B6:H25").Select
On Error GoTo Error_handler:
Selection.SpecialCells(xlCellTypeConstants, 1).Select
Selection.ClearContents
Error_handler:
MsgBox "Cleared"
End Sub
but it only clears numbers. I need it to clear everything with exception of a specific value.
thank you