I need to create a script that will type a value into every colored cell in a given range I am very new to all of this so forgive my ignorance. From the reading I've done I've come up with this
Sub Macro1()
Dim colors As Range, found As Boolean
Set colors = ActiveSheet.Range("D19:CV68")
found = VBA.IsNull(colors.DisplayFormat.Interior.ColorIndex)
colors = IIf(found, "1", " ")
End Sub
This gets me very close to what I need but instead of placing the 1 in just the colored cells it places the one in every cell in the range. I'm sure there is a very basic way to do this that I am just not aware of. I appreciate any help that I can get. Thanks!