I need to create a loop that will use this code again but for the row below it. I am trying to create a timetable from a table and the code I have works for the first row, but I need it to do the same thing for the 3 rows below it . I have attached a word document that shows what the table needs to look like after the procedure is run.
Sub Timetable()
st = Range("B2")
meeting = Range("A2")
et = Range("C2")
Location = Range("D2")
diff = et - st - 1
Range(Cells(st, 2), Cells(st + diff, 3)).Interior.ColorIndex = 5
Cells(st, 2) = meeting
Cells(st, 3) = Location
End Sub
Bookmarks