I am trying to clear the contents of cells in columns A to M when the corresponding row in Column A is blank or numeric
The code I have is:
Sub Row_Clear2()
Dim a As Long
Dim b As Long
Dim LClearCells As String
‘data will cleared in columns A to M when Column A is blank or numeric
LClearCells = “A” & a & “:” & “M” & a
a = Range(“A300”).End(xlUp).Row
For b = a To 2 Step -1
If IsNumeric(Range(“A” & ) Or Range(“A” &
= “” Then
Range(LClearCells).ClearContents
End If
Next b
End Sub
The code fails at “Range(LClearCells).ClearContents”
Can you help?