hello & thank you for your consideration on this!
I'm just a hack that occasionally gets lucky finding something online & messing with it til it works & this seemed like a task that fit my skills but this code isn't changing a specific cell color to "no fill". Any insights would be greatly appreciated!
Sub TestFillColor()
Dim cell As Range
'Loop through each cell in selected range
For Each cell In Selection.Cells
'Test if cell has a fill color
If cell.Interior.ColorIndex = RGB(100, 100, 100) Then
'change to no fill
cell.Interior.Color = RGB(0, 0, 0)
End If
Next cell
End Sub
I'm just a hack that occasionally gets lucky finding something online & messing with it til it works & this seemed like a task that fit my skills but this code isn't changing a specific cell color to "no fill". Any insights would be greatly appreciated!
Sub TestFillColor()
Dim cell As Range
'Loop through each cell in selected range
For Each cell In Selection.Cells
'Test if cell has a fill color
If cell.Interior.ColorIndex = RGB(100, 100, 100) Then
'change to no fill
cell.Interior.Color = RGB(0, 0, 0)
End If
Next cell
End Sub