#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Networkdays

Hi GMet

This is a function from the Analysis Toolpak addin

In VBA, go to ToolsReferences and check ATPVBAEN.XLS
you can use it in your code now without the Application.WorksheetFunction before it

--
Regards Ron de Bruin
http://www.rondebruin.nl


"GMet" wrote in message ...
I want to use the NETWORKDAYS function in VB. Here is what I have:

WrkDaysInMon=Application.WorksheetFunction.Network days(StartDate,FinishDate,
Worksheets("Lists").Range("V3:V24"))

In the spreadsheet body it works fine with:
=Networkdays(P4,R4,Lists!V3:V24)

When I try to use it in a macro, I get the message "Object doesn't support
this property or method"

What have I done wrong?

TIA
GMet




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
networkdays oldLearner57 Excel Discussion (Misc queries) 2 April 14th 08 06:26 PM
NETWORKDAYS #NAME? Angiewelly Excel Discussion (Misc queries) 4 April 7th 08 04:20 PM
networkdays ann chan Excel Worksheet Functions 4 November 27th 06 04:25 PM
NETWORKDAYS Connie Martin Excel Worksheet Functions 3 July 28th 06 07:52 PM
networkdays Christian (DK) Excel Worksheet Functions 6 November 21st 05 11:32 AM


All times are GMT +1. The time now is 11:53 PM.

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"