change date format to excel format

  • Thread starter Thread starter Motta
  • Start date Start date
M

Motta

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?
 
You can use Data>Text 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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top