Hi guys!
I've succesfully exported a lot of data to excel, but when I export date-columns the format in Excel remain standard-numbers... Is there any way I can change the column-format to date with an SQL-line.
I've got a line in my code that adjusts the column-width and works
So I guess I'm looking for something like:
... which by the way doesn't work
Thanks in advance
//JR
I've succesfully exported a lot of data to excel, but when I export date-columns the format in Excel remain standard-numbers... Is there any way I can change the column-format to date with an SQL-line.
I've got a line in my code that adjusts the column-width and works

Code:
.Columns("A").ColumnWidth = 9
So I guess I'm looking for something like:
Code:
.Columns("A").ColumnFormat = Date
... which by the way doesn't work

Thanks in advance
//JR