Sorry Actually new error I forgot I had changed the dim several times, when using
Worksheets("Hours").Cells(Rows.Count, 5).End(xlUp).Offset(0, 1).GoalSeek Goal:=8, ChangingCell:=Worksheets("Hours").Cells(Lastrow,5)
I get a new error and highlights on line:
Lastrow = ActiveSheet.Cells(Rows.Count, 5).End(xlUp).Row
Error: RTE 91 Object Variable or With block variable not set
This lead me to add Set to the beginning of line 2:
Dim Lastrow As Range
Set Lastrow = ActiveSheet.Cells(Rows.Count, 5).End(xlUp).Row
which throws RTE 424 Object required on the same Set Lastrow line.
Final code remains there for now:
Sub CalcEndTime()'
' CalcEndTime Macro
'
' Keyboard Shortcut: Ctrl+t
'
Dim Lastrow As Range
Set Lastrow = ActiveSheet.Cells(Rows.Count, 5).End(xlUp).Row
Application.CutCopyMode = False
Worksheets("Hours").Cells(Rows.Count, 5).End(xlUp).Offset(0, 1).GoalSeek Goal:=8, ChangingCell:=Range(Lastrow, 5)
End Sub