I have the following:
Sub Automatic_Highlights(Rng As Range)
If Rng.Range("O:T") = True Then GoTo Skip ' In my head this should read "If Rng falls within Range("O:T"), Then GoTo Skip"; Or that's how I want it to read at least.
Rng.Interior.ColorIndex = 7
Intersect(Rng.EntireRow, Range("U:U")).Interior.ColorIndex = 7 ' Is it possible to accomplish the above comment here, making the loop unnecessary?
Skip:
End Sub
Basically I want to exclude columns O:T from the loop, and I can't seem to figure it out. Anyone have any input?
Sub Automatic_Highlights(Rng As Range)
If Rng.Range("O:T") = True Then GoTo Skip ' In my head this should read "If Rng falls within Range("O:T"), Then GoTo Skip"; Or that's how I want it to read at least.
Rng.Interior.ColorIndex = 7
Intersect(Rng.EntireRow, Range("U:U")).Interior.ColorIndex = 7 ' Is it possible to accomplish the above comment here, making the loop unnecessary?
Skip:
End Sub
Basically I want to exclude columns O:T from the loop, and I can't seem to figure it out. Anyone have any input?
Last edited: