Text to Columns formatting

  • Thread starter Thread starter Nils Titley
  • Start date Start date
N

Nils Titley

This is the output from a macro that recorded from Text To Column.

Selection.TextToColumns Destination:=Range("A8"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False,
Tab:=True, _
Semicolon:=False, Comma:=False, Space:=False, Other:=False,
FieldInfo _
:=Array(1, 4), TrailingMinusNumbers:=True

This macro takes a date and converts it to dd/mm/yyyy.

Where does it get the format for the dd/mm/yy? Can I use this to convert a
date before I write it to a worksheet?

Thanks
 
Probably gets the format from your Windows Regional setting for short date.


Gord Dibben MS Excel MVP
 
Back
Top