Hello all,
I am trying to change all cells on a work sheet or a named range to clear (or white) using VBA, i want to be able to change a cells colour back to its normal state.
Can anyone help?..........here's what i have so far you can run it but it does nothing!
Simon
Sub colourchange()
Dim mycell
Dim rng as Range
'For Each mycell In rng("colourrange")
With Worksheets("sheet1")
Set rng = Range("A1:C7")
For Each mycell In rng
If rng.Interior.ColorIndex = 38 Then
rng.Interior.ColorIndex.Format.Clear
End If
Next mycell
End With
End Sub
Bookmarks