Hello
I'm getting a type mismatch error while calculating the time difference.
In cell A1, I have the value 19/06/2020 05:40:12
In cell B1, I have the value 19/06/2020 05:45:15,
While calculating the difference between them in VBA, I'm getting type mismatch error
I used the below code
I need the output in HH:MM:SS format.
I'm getting a type mismatch error while calculating the time difference.
In cell A1, I have the value 19/06/2020 05:40:12
In cell B1, I have the value 19/06/2020 05:45:15,
While calculating the difference between them in VBA, I'm getting type mismatch error
I used the below code
VBA Code:
For i=1 to 10
Cells(i,3)=Cells(i,2)- Cells(i,1)
Next i