LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Incrementing times and dates

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
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
Calculate times between dates and times in Excel Helio Excel Discussion (Misc queries) 1 March 25th 10 04:29 AM
Incrementing dates in the format MMM-YY kmewing Excel Discussion (Misc queries) 3 October 19th 07 06:03 PM
Repeating/incrementing dates 35039 times Daiv Excel Discussion (Misc queries) 5 January 4th 07 09:54 PM
Question re incrementing Dates by one month SA3214 Excel Programming 2 May 7th 05 12:27 AM
Incrementing dates by one hour returns bad result jennifer Excel Programming 0 November 19th 03 06:45 PM


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