Calculating Workdays in an Interval

R

roadkill

It seems like there should be a simple way in VBA to determine the number of
workdays in an interval (short of looping to count them or using DateDiff
then subtracting out weekends and holidays). Unfortunately I haven't been
able to find it. Am I missing something? Is there, per chance, a function
similar to Datediff that will provide what I need in one step?

Thanks,
Will
 
J

Jan De Messemaeker

Hi,

You need the DateDifference method (application.date difference)
HTH
 

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