LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Networkdays to open previous day's file

Go into the VBIDE (Alt-F11)

Select your VBA project in the list

Goto ToolsReferences

Scroll down until you see artpvbaen.xls, it should only be 6-10 down

Check that item and exit.

You should be able to reference NETWORKDAYS directly then.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Dave" wrote in message
...
Thanks for your response Bob,

I am pretty new at coding in VBA so I don't understand what you mean.

--
Thank you

Dave


"Bob Phillips" wrote:

Set a reference to the Analysi Toolpak, atvbaen.xls, in the VBIDE.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"Dave" wrote in message
...
Hi,

I am trying to use the networkdays function to open a previous day's
file.
I
am receiving an error that the function is not defined. Why do I need
to
define this Microsoft function? Any suggestions on how to open a
previous
day's file that is saved as FileJul3108 excluding the day before if it
was
a
weekend day or holiday?

PrevSuffix = Format((NETWORKDAYS((DateAdd("d", -1, Date)), ,
HolidayList)),
"Mmmddyy")

HolidayList = Array("Sep0108", "Nov2708", "Dec2508", "Jan0109",
"Jan1909",
"Feb1609", _
"Apr1009", "May2509", "Jul0309", "Sep0709",
"Nov2609",
"Dec2509")

--
Thank you

Dave






 
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
Who has this workbook open showing previous users jimar Excel Discussion (Misc queries) 0 November 6th 07 03:58 PM
Can I reverse a saved file to the previous file in Excel? highlandmom Excel Discussion (Misc queries) 5 August 28th 07 04:10 PM
why does excel always open the previous files ? Douglas. Excel Discussion (Misc queries) 0 August 17th 06 12:46 PM
How can I open previous version of saved file in Excel? Cindy W. Excel Discussion (Misc queries) 1 August 1st 05 10:33 PM
excell 2003 will not open previous version fsg Excel Discussion (Misc queries) 2 January 21st 05 07:19 PM


All times are GMT +1. The time now is 05:46 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"