if you load and set a reference to the Analysis toolpak - VBA, you can call
networkdays directly in VBA like it was a function you wrote (not an excel
builtin function).
--
Regards,
Tom Ogilvy
"mpfirman" wrote in message
...
I would like to be able to calculate the difference between two
dates/times but only count the business hours. For instance for an 8
hour day 1/2/04 08:00 - 1/1/04 08:00 would equal 8 hours. I previously
was doing this with a formula using the NETWORKDAYS function but would
like to re-write the entire spreadsheet using VBA. Any help or
suggestions would be appreciated. Thank you.
---
Message posted from http://www.ExcelForum.com/