missprogrammer
Programmer
The column count will differ for each sheet(possibly evertime its ran)
Private Sub Check()
Call ChangeColor(1, 10)
End Sub
Private Sub ChangeColor(MyCol As Integer, MaxRows As Long)
For i = 1 To MaxRows
If ActiveSheet.Cells(i, MyCol).Value = "" And ActiveSheet.Cells(i, MyCol).Interior.ColorIndex <> 1 Then
ActiveSheet.Cells(i, MyCol).Interior.ColorIndex = 3
End If
Next i
End Sub
Private Sub Check()
Call ChangeColor(1, 10)
End Sub
Private Sub ChangeColor(MyCol As Integer, MaxRows As Long)
For i = 1 To MaxRows
If ActiveSheet.Cells(i, MyCol).Value = "" And ActiveSheet.Cells(i, MyCol).Interior.ColorIndex <> 1 Then
ActiveSheet.Cells(i, MyCol).Interior.ColorIndex = 3
End If
Next i
End Sub