I am trying to subtract two times from each other with no luck. I have tried a couple of combinations with no luck. I am hoping to get some help. Here is my code.
Code:
Dim myNum6 As Date
Dim myNum7 As Date
myNum6 = Application.InputBox("Enter Start Time")
myNum7 = Application.InputBox("Enter End Time")
'Start Time
Range("J" & LR - 1).Value = myNum6
'End Time
Range("K" & LR - 1).Value = myNum7
Range("M" & LR).Formula = "=" & (("J" & LR - 1) * 24) - Range(("K" & LR - 1) * 24)
Range("M" & LR).Select
With Selection
.NumberFormat = "0.00"
End With