Hello
When I open a downloaded csv file with vba it shows the the date & time in the correct format for the month that appears at the top of the column. The column comes formatted in dd/mm/yyyy hh:mm. Scroll down to where the next month starts & the date & time appear as text on the left of the column, but still displaying almost the same. After looking at it I noticed that there are 2 spaces between the date & time for the top rows & where it changes month, one of the spaces is removed & it displays as text. Enter another blank space & it then displays correctly as a date. Open the csv file manually & this doesn't happen.
I've tried saving as xlsx & it's still the same scenario.
The vba to open it is Workbooks.Open Filename:= Path & Filename & I've tried Workbooks.Open(Path & Filename)
Both with the same result. As soon as it's open, it's ok for the latest month, after that & at the change of date between months, it displays as text
Any ideas why?
Thanks
Bookmarks