Hi everyone,
I have the following worksheet formula to calculate the difference between two times with observance that end time is always greater than start time:
For Example: The difference between 08:00 PM And 02:00 AM is 6 hours![]()
Please Login or Register to view this content.
Actually the function works just fine on the worksheet, but when I converted it to VBA using the following code:
The function gives correct result only when the start time is less than end time.![]()
Please Login or Register to view this content.
Any suggestions?
Regards,
Bookmarks