I am looking for a way to loop through records on tab1 and color fill on tab2. This code below works perfectly however i could have to write out a thousand more lines to finish it and i know there must be a simple loop which will solve it so any help will be greatly appreciated.
If Sheet1.Range("k5") = TimeValue("7:00") And Sheet1.Range("l5") = TimeValue("1:30p") Then
Sheet2.Range("(b90)
n90)").Interior.ColorIndex = 46
End If
If Sheet1.Range("k6") = TimeValue("7:00") And Sheet1.Range("l6") = TimeValue("1:30p") Then
Sheet2.Range("(b91)
n91)").Interior.ColorIndex = 46
End If
etc....
If Sheet1.Range("k5") = TimeValue("7:00") And Sheet1.Range("l5") = TimeValue("1:30p") Then
Sheet2.Range("(b90)
End If
If Sheet1.Range("k6") = TimeValue("7:00") And Sheet1.Range("l6") = TimeValue("1:30p") Then
Sheet2.Range("(b91)
End If
etc....