LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Using DateAdd function to add 1 weekday/workday

Hello all,

When running the following code today (Friday, 12/1/2006), I get a message box with tomorrows date in it:

msgbox dateadd("w",1,date())

using the "w" for weekday, what is the definition of "weekday"? I was assuming that "weekday" meant M-F, not Sat or Sun.

I'm trying to get this so it will show the following Monday's date if it is run on a Friday. Running it on a M-Th will just show
the date of the next day.

What is going on here? How can I get this to skip the weekends?

--
Thanks for any help anyone can provide,

Conan Kelly


 
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
Dateadd function Dr. Maunuk Excel Discussion (Misc queries) 2 September 28th 07 07:32 AM
WEEKDAY() function: display TEXT not numeric weekday tom Excel Discussion (Misc queries) 3 November 21st 06 04:32 PM
Using DateAdd Function with cell values loren.pottinger Excel Discussion (Misc queries) 3 August 30th 06 01:10 AM
Using DateAdd function with cell values. loren.pottinger Excel Programming 3 August 29th 06 06:52 PM
DateAdd function Bill[_19_] Excel Programming 2 November 12th 03 07:07 PM


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