T
TesterEd
Hi All,
Sorry if this is a bit of a muggle question, but i'm still getting m
head round VBA.
I've got various macros at the moment that highlight certain thing
given a criteria, but so far i've only been able to highlight the entir
row which is quite messy. The worksheet goes from column A - N and that
all i'd light highlighted. The code i've got so far is;
Sub HighlightRed()
Dim cell As Range
Range(Range("L7"), Range("L7").End(xlDown)).Select
For Each cell In Selection
If cell = "Red" Then cell.EntireRow.Interior.ColorIndex = 3
Next cell
End Sub
So it looks in Row L (starting from cell 7), and looks for any cell
with "Red" in them, and highlights that entire row red. However I onl
want it to highlight cells in rows A to N, and not the "EntireRow".
Any help would be appreciated,
Thanks,
E
Sorry if this is a bit of a muggle question, but i'm still getting m
head round VBA.
I've got various macros at the moment that highlight certain thing
given a criteria, but so far i've only been able to highlight the entir
row which is quite messy. The worksheet goes from column A - N and that
all i'd light highlighted. The code i've got so far is;
Sub HighlightRed()
Dim cell As Range
Range(Range("L7"), Range("L7").End(xlDown)).Select
For Each cell In Selection
If cell = "Red" Then cell.EntireRow.Interior.ColorIndex = 3
Next cell
End Sub
So it looks in Row L (starting from cell 7), and looks for any cell
with "Red" in them, and highlights that entire row red. However I onl
want it to highlight cells in rows A to N, and not the "EntireRow".
Any help would be appreciated,
Thanks,
E