Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
Running the code below on cell C2 containing today's date of 12-10-2004 changes cell value to 05-10-2004. Running code a second time changes cell C2 value to 05-09- 2004 Dim dt As Date dt = [C2].Value [C2].Value = dt - Day(dt - 5) How do you alter the code to achieve similar changes, but increase the dates value?. i.e. 01-10-2004 to 05-10-2004 run code again to increase by a month to 05-11-2004. TIA Bob C |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Increasing Month only in formula | Excel Discussion (Misc queries) | |||
Date arithmetic: adding 1 month to prior end of month date | Excel Worksheet Functions | |||
Sort month/date/year data using month and date only | Excel Discussion (Misc queries) | |||
How can i change cell colour depending on month of date in cell? | Excel Discussion (Misc queries) | |||
Calculate month-end date from date in adjacent cell? | Excel Worksheet Functions |