Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Increment a Variable Defined Date by 1 day
I have defined a date variable with a date [MM/DD/YYYY] as the first day of
the week [Monday]. I would like to increment the date variable by 1 day. This should be straightforward but I am not finding it in my reference book. Any help would be appreciated. Example: strdate = 10/11/2004 I need: strdate +1 = 11/12/2004 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Increment a Variable Defined Date by 1 day
How do you come to the conclusion that
10/11/2004 plus 1 is 11/12/2004. If you meant 10/12/2004, then strDate + 1 gives you the date 1 day later than 10/11/2004 as long as strDate is a date variable, or a variant loaded with a date. -- HTH RP "JimI" wrote in message ... I have defined a date variable with a date [MM/DD/YYYY] as the first day of the week [Monday]. I would like to increment the date variable by 1 day. This should be straightforward but I am not finding it in my reference book. Any help would be appreciated. Example: strdate = 10/11/2004 I need: strdate +1 = 11/12/2004 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Increment a Variable Defined Date by 1 day
Bob,
Didn't mean to confuse anyone "11/12/2004 was a typo. I was looking to increment by one day. Thanks for your answer. I had my variable incorrectly identified as a "single". Fixed and all is well. Thanks!!!! "Bob Phillips" wrote: How do you come to the conclusion that 10/11/2004 plus 1 is 11/12/2004. If you meant 10/12/2004, then strDate + 1 gives you the date 1 day later than 10/11/2004 as long as strDate is a date variable, or a variant loaded with a date. -- HTH RP "JimI" wrote in message ... I have defined a date variable with a date [MM/DD/YYYY] as the first day of the week [Monday]. I would like to increment the date variable by 1 day. This should be straightforward but I am not finding it in my reference book. Any help would be appreciated. Example: strdate = 10/11/2004 I need: strdate +1 = 11/12/2004 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
why is it saying sheetcnt is "variable not defined" how to do a global variable to share over multiple functions in vba for excel? | Excel Worksheet Functions | |||
[Q] msoShapeRectangle: variable not defined | Excel Programming | |||
Problem with a defined variable | Excel Programming | |||
Increment a variable | Excel Programming | |||
Increment a variable while looping | Excel Programming |