I have written code to clear data except formulas from all sheet starting from sheet 3 and from A15 to the last row in Col M
I want to amend the formula so that any coloured cells using the fill colour are also not cleared
Sub Clear_Data Dim Sh As Integer Dim LR As Long For Sh = 3 To Worksheets.Count With Worksheets(Sh) LR = .Cells(.Rows.Count, "A").End(xlUp).Row If LR < 15 Then LR = 15 On Error Resume Next .Range("A15:M" & LR).SpecialCells(xlCellTypeConstants).ClearContents On Error GoTo 0 End With Next Sh End Sub
It would be appreciated if someone could kindly assist me