i've got the following snippet, which iterates trough a range and changes for all cell's without a fill color, the fill-color to white. How can I remember which cells were changed, so that I can change them back later
Code:
' change for cells without a fill-color the fill-color to white
Dim cell As Range
For Each cell In Selection
If cell.Interior.ColorIndex = xlColorIndexNone Then
On Error Resume Next
cell.Interior.ColorIndex = 2
cell.Interior.Pattern = xlSolid
End If
Next cell
thanks! (already in advance )