I am trying to do a microsoft query to pull data from a csv.
And in field date is as a string. but once the microsoft query has run i need the date field to be a date field, so i can sort it by date.
Dim mVal As Long
For Each c In Range("DateRange"
mVal = DateValue(c.Text)
c.NumberFormat = "dd/mm/yy"
c.Value = Format(mVal, "dd/mm/yy"
Next
After the query has run - this should convert all your textdates to actual dates Rgds
~Geoff~
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.