Netwrokdays in VBA

F

fi.or.jp.de

Hi All,

I have created userform, I need some help on this !

We have APAC, US regions.

Start date & time AND end date & time captured in userform ( those
data stored in MS Access )

Eg : Start date & time ( mm/dd/yyyy hh:mm:ss )

US region timing 5.30 PM - 2.30 AM ( Indian Standard Time )

If user gets request Within US region time then end minus start -
total time will be captured.

If user get request after US region time - user will update the
userform whatever the time

he received the request. Say 4:30 AM ( IST ) at this time, US Market
closed.

Once the US market open we proceed with our work.

Total time for the above case will be different because request
received after US region time.

Eg,
Received time - 4.00 AM IST
Completed Time - 8.30 PM IST
Total time taken to complete - 0 days 3 hrs ( as it is on the same
day ). Because Received after US region time Time Starts from 5.30 PM
IST.

NOTE : there are cases where requested completed after a week also.

So, Answer should be in days & hrs ( only Business Days )

I Need VBA Soultion.

Thanks in advance.
 
S

Shane Devenshire

The networkdays function is available in VBA, but that function does not
calculate fractional parts of days.

In addition, this may be a lot more complicated that you seem to make it.
what if it is a holiday in India, but not in the US, or visa versa? What if
it is a weekday in US but a weekend in India or visa versa?

And what about the multiple time zones, there are many in the US and I
suppose many in India?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top