Hi I need to convert date "dd/mm/yy" to double in VBA.
I cannot find anything about that on the forum
Thanks
Hi I need to convert date "dd/mm/yy" to double in VBA.
I cannot find anything about that on the forum
Thanks
Last edited by Whistlerek; 07-31-2011 at 05:53 AM.
A date in excel appears as number formatted as a date. So assuming the ActiveCell contains a date,you could use
I would use a Long variable & CLng not CDblPlease Login or Register to view this content.
Hope that helps.
RoyUK
--------
For Excel Tips & Solutions, free examples and tutorials why not check out my web site
Free DataBaseForm example
If it's coming from a cell, you could also use the Value2 property
Please Login or Register to view this content.
Thanks, works great!
If you are satisfied with the solution(s) provided, please mark your thread as Solved.
How to mark a thread Solved
Go to the first post
Click edit
Click Go Advanced
Just below the word Title you will see a dropdown with the word No prefix.
Change to Solved
Click Save
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks