I've noticed you can use the letter 'c' to refer to every single cell within a looping range:
Sub ApplyColor()
Const Limit As Integer = 25
For Each c In Range("MyRange")
If c.Value > Limit Then
c.Interior.ColorIndex = 27
End If
Next c
End Sub
so i just like to clarify what;
"For Each c" ... actually means in VBA
haven't been able to find it anywhere.
can you use the letter c for non looping procedures?
like
for each c in range("a1:a10")
c.value = 1
thanks alot
chrs.
Sub ApplyColor()
Const Limit As Integer = 25
For Each c In Range("MyRange")
If c.Value > Limit Then
c.Interior.ColorIndex = 27
End If
Next c
End Sub
so i just like to clarify what;
"For Each c" ... actually means in VBA
haven't been able to find it anywhere.
can you use the letter c for non looping procedures?
like
for each c in range("a1:a10")
c.value = 1
thanks alot
chrs.