Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 84
Default 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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default 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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 84
Default 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



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default 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


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 84
Default 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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combining Text from 2 Columns into 1 then Deleting the 2 Columns sleepindogg Excel Worksheet Functions 5 September 19th 08 12:36 AM
Find formatting in text in cell, insert tags around formatting. CarlC Excel Programming 2 February 27th 08 09:26 PM
merge text from 2 columns into 1 then delete the old 2 columns sleepindogg Excel Worksheet Functions 4 March 30th 06 07:25 PM
Linking text columns with text and data columns Edd Excel Worksheet Functions 0 March 17th 05 04:23 PM
extracting text from within a cell - 'text to rows@ equivalent of 'text to columns' Dan E[_2_] Excel Programming 4 July 30th 03 06:43 PM


All times are GMT +1. The time now is 09:37 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"