ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Text to Columns formatting (https://www.excelbanter.com/excel-programming/408954-text-columns-formatting.html)

Nils Titley

Text to Columns formatting
 
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



Gord Dibben

Text to Columns formatting
 
Probably gets the format from your Windows Regional setting for short date.


Gord Dibben MS Excel MVP

On Mon, 7 Apr 2008 13:52:44 -0700, Nils Titley
wrote:

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



Nils Titley

Text to Columns formatting
 
Gord,

Could you look at Data Problem.....

Thanks

"Gord Dibben" wrote:

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


Gord Dibben MS Excel MVP

On Mon, 7 Apr 2008 13:52:44 -0700, Nils Titley
wrote:

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




Gord Dibben

Text to Columns formatting
 
What is that?

The subject line of another posting?


Gord

On Mon, 7 Apr 2008 14:36:02 -0700, Nils Titley
wrote:


Could you look at Data Problem.....

Thanks



Nils Titley

Text to Columns formatting
 
Yes,

It is 7 problems before this.

Thanks

"Gord Dibben" wrote:

What is that?

The subject line of another posting?


Gord

On Mon, 7 Apr 2008 14:36:02 -0700, Nils Titley
wrote:


Could you look at Data Problem.....

Thanks





All times are GMT +1. The time now is 06:08 PM.

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