i need help with offset in excel macro
this is my code,but it dont seem right,i need it to color in cells to the left
Sub Service_Check()
Dim Mycell As Range
For Each Mycell In Range("miles_To_Date")
If Mycell.Value > 6000 Then
With Mycell.Interior
.ColorIndex = 4
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
Mycell.Offset(0, -8)
.ColorIndex = 4
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
End With
End If
Next
End Sub
2007-03-06
23:37:28
·
2 answers
·
asked by
IAN R
1
in
Computers & Internet
➔ Programming & Design