Hi,
Trying to clear the contents of all cells that are Color #20 or RGB 204/255/255 that are on almost all tabs in various cells (manual colored)
Private Sub CommandButton3_Click()
Dim xcell As Range
Dim xrng As Range
Set xrng = ActiveWorkbook.Sheets
For Each xcell In xrng
If xcell.Interior.Color = RGB(204, 255, 255) Then
xcell.ClearContents
End If
Next
End Sub
Trying to clear the contents of all cells that are Color #20 or RGB 204/255/255 that are on almost all tabs in various cells (manual colored)
Private Sub CommandButton3_Click()
Dim xcell As Range
Dim xrng As Range
Set xrng = ActiveWorkbook.Sheets
For Each xcell In xrng
If xcell.Interior.Color = RGB(204, 255, 255) Then
xcell.ClearContents
End If
Next
End Sub