Hi standa,
You could add the following code either as part of the CopyRecord2Tab Sub or as a separate Sub.
NB You need to format Column G with special format [h]:mm in order to total more than 24 hours.
Sub Add_Total_And_Colour()
Dim LastRow As Integer
LastRow = Range("F65536").End(xlUp).Row
Range("G3").Value = "Total Hours"
Range("G:G").NumberFormat = "[h]:mm"
With Range("G4")
.FormulaR1C1 = "=SUM(RC[-1]:R[" & LastRow & "2]C[-1])"
.Interior.ColorIndex = 5
End With
Range("B1").Interior.ColorIndex = 3
Columns("C:D").Interior.ColorIndex = 6
End Sub
Bookmarks