Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
well take a better look: these are not strings
they are converted from strings to dates just because of the Dim declaration D is supposed to be a date, so D = "..." makes VBA try to convert the "..." to the date type. But you may use D = CDate("...") if you want to much more understand the key of my code. (this CDAte is auto-added by VBA by default) Many thanks, I have improved my code by using your method - it saved me a lot of time and stress. Cheers JS |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Calculate times between dates and times in Excel | Excel Discussion (Misc queries) | |||
Incrementing dates in the format MMM-YY | Excel Discussion (Misc queries) | |||
Repeating/incrementing dates 35039 times | Excel Discussion (Misc queries) | |||
Question re incrementing Dates by one month | Excel Programming | |||
Incrementing dates by one hour returns bad result | Excel Programming |