Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Business hours calculation

I would like to be able to calculate the difference between tw
dates/times but only count the business hours. For instance for an
hour day 1/2/04 08:00 - 1/1/04 08:00 would equal 8 hours. I previousl
was doing this with a formula using the NETWORKDAYS function but woul
like to re-write the entire spreadsheet using VBA. Any help o
suggestions would be appreciated. Thank you

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Business hours calculation

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/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Business hours calculation

I have the analysis toolpack for Excel installed, can't find how t
install the analysis toolpack-VBA

--
Message posted from http://www.ExcelForum.com

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Business hours calculation

Tools=Addins,
right under Analysis toolpak should be Analysis toolpak - VBA. Just click
the checkbox and it should load.

If it isn't a choice, possibly you need to use add/remove programs in the
control panel to bring up the office setup and install it.

ATPVBAEN.XLA

Will be the file you see in the project explorer in the VBE if it is loaded.
(funcres.xla is the analysis toolpak itself). Before trying to install it,
you might do a search of your drive and see if you have it. If so, use the
browse button in Tools=Addins.
--
Regards,
Tom Ogilvy


"mpfirman" wrote in message
...
I have the analysis toolpack for Excel installed, can't find how to
install the analysis toolpack-VBA?


---
Message posted from http://www.ExcelForum.com/



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Business hours calculation

Got it, thank you very much !

--
Message posted from http://www.ExcelForum.com

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
business hours formula help Belinda7237 Excel Discussion (Misc queries) 3 April 17th 08 04:08 PM
Calculating Networkdays and Business Hours James A. Excel Worksheet Functions 3 September 26th 06 08:02 PM
Add 12 business hours to Time [email protected] Excel Worksheet Functions 0 May 10th 06 01:20 AM
Calculating Business Hours Between 2 Dates tanya216 Excel Discussion (Misc queries) 3 April 11th 06 03:22 PM
Time and Business Hours Brett Excel Worksheet Functions 1 November 23rd 05 08:20 PM


All times are GMT +1. The time now is 01:26 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"