View Single Post
 
Old 12-05-2008, 02:03 AM
et5323 et5323 is offline
Novice
 
Join Date: Dec 2008
Posts: 1
et5323 is on a distinguished road
Default

Reference:
sub test()
dim rng as range
for each rng in range("a1:a5")
with rng
if .value>.offset(0,1).value then
.interior.colorindex = 3
else
.interior.colorindex = 4
end if
end with
next
end sub
Reply With Quote