Having trouble getting this to work so that it add the sum to the end of column G:
lastrow = ThisWorkbook.Sheets("HOURS BY ID").Cells(Rows.Count, 2).End(xlUp).Row
ThisWorkbook.Sheets("HOURS BY ID").Range("G" & lastrow + 1) = Application.WorksheetFunction.Sum(ThisWorkbook.Sheets("HOURS BY ID").Range("G2:G" & lastrow))
lastrow = ThisWorkbook.Sheets("HOURS BY ID").Cells(Rows.Count, 2).End(xlUp).Row
ThisWorkbook.Sheets("HOURS BY ID").Range("G" & lastrow + 1) = Application.WorksheetFunction.Sum(ThisWorkbook.Sheets("HOURS BY ID").Range("G2:G" & lastrow))