Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default Function for calculating workdays?

On Sun, 12 Oct 2003 12:24:10 +0100, "Bob Phillips"
wrote:

Thorleif,

NETWORKDAYS is part of the Analysis Toolpak addin, and as such you cannot
use it in VBA as you would the built-in functions.

However, it is still possible to use it. In VBA, go to ToolsReferences, and
check the ATP library. In English it's called ATPVBAEN.XLS.

Then you call the function as for any other function, such as
Msgbox NetWorkdays(.....)


One further comment. The ATP function WORKDAY is very US-centric with regard
to date interpretation. It may be that NETWORKDAYS is also US-centric. If
that is the case, and TC is not using the US date format, NETWORKDAYS may not
function properly for him. I recall a French poster having a date related
problem with the WORKDAY function, and we wound up writing a VBA routine that
did not involve the ATP.


--ron
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
Calculating number of workdays between 2 dates Gibbyky2 Excel Worksheet Functions 15 April 1st 11 12:31 PM
Calculating new date by entering number of additional workdays blswes Excel Worksheet Functions 1 April 1st 10 11:45 PM
Workdays Function Shannon Excel Worksheet Functions 2 October 11th 06 11:10 PM
Calculating number of workdays PO Excel Worksheet Functions 1 August 31st 06 01:40 PM
Workdays Function KeyMike Excel Worksheet Functions 1 August 9th 06 02:42 PM


All times are GMT +1. The time now is 11:10 AM.

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

About Us

"It's about Microsoft Excel"