ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   change date format to excel format (https://www.excelbanter.com/excel-programming/440498-change-date-format-excel-format.html)

Motta

change date format to excel format
 
Hi, I have a date in 01.03.2010 format, how can I change it by using vba for
every time I import the data?

Bob Phillips[_4_]

change date format to excel format
 
You can use DataText To Columns and use the last tab to set dates.

I just recorded a macro to do it, and after tidying it left

Columns("O:O").TextToColumns _
Destination:=Range("O1"), _
DataType:=xlDelimited, _
FieldInfo:=Array(1, 4)


--

HTH

Bob

"Motta" wrote in message
...
Hi, I have a date in 01.03.2010 format, how can I change it by using vba
for
every time I import the data?





All times are GMT +1. The time now is 09:56 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com