Hey guys,
I would like to write a VBA macro sub that would take two columns that contain month/day/year and time and calculate the amount of hours that have passed between the two. I would like to exclude weekends and the hours that we are not open, so the only hours that would matter would be (M-F from 7 am to 8 pm).
The columns that I would be using in this code looks like this example: (6/7/2013 5:50:00). This seems to be the biggest problem with the code I have written so far.
So the real question is, would it be possible to determine the amount of hours that have passed when we exclude times closed and weekends when the date is in that format?
This is what I have so far, but it gives me a run time error:
Thanks everyone, much obliged.![]()
Please Login or Register to view this content.
Bookmarks