Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
LSB LSB is offline
external usenet poster
 
Posts: 8
Default Convert text to column using macro

Hi, would like to find out how can i write a macro to
convert a list of text in column.
For example:
3A 0.320 0.320 0.310 0.315 -0.005
A&M 0.900 0.880 0.880 0.880 -0.020
A&M-WA 0.420 N/A N/A N/A N/A

I copy this data into excel sheet in column A, and by
running the macro I want to convert the data into
individual column.

A B C D E F
----------------------------------------------------
3A 0.320 0.320 0.310 0.315 -0.005
A&M 0.900 0.880 0.880 0.880 -0.020
A&M-WA 0.420 N/A N/A N/A N/A


Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default Convert text to column using macro

You have a couple of options here.

If you are copying this information from an existing text
file, you might want to consider writing an Import macro.
Start a macro recording. Click File/Open, under the Files
of type list, check All Files then find your text file.
This will automatically launch the Text Import Wizard.
Follow its instructions on parsing the file into the
correct columns. Copy the data over to your workbook,
then stop the macro recording.

If you are copying this information directly from some
other program, then you can use the Text to Columns
wizard. Copy the data to column A. Start the macro
recorder. Select column A (the whole column needs to be
selected, not just one cell). From the Data menu select
Text to Columns. From this point it's identical to the
above Text Import Wizard. Just follow the wizards
instructions. Stop the macro recorder.


-----Original Message-----
Hi, would like to find out how can i write a macro to
convert a list of text in column.
For example:
3A 0.320 0.320 0.310 0.315 -0.005
A&M 0.900 0.880 0.880 0.880 -0.020
A&M-WA 0.420 N/A N/A N/A

N/A

I copy this data into excel sheet in column A, and by
running the macro I want to convert the data into
individual column.

A B C D E F
----------------------------------------------------
3A 0.320 0.320 0.310 0.315 -0.005
A&M 0.900 0.880 0.880 0.880 -0.020
A&M-WA 0.420 N/A N/A N/A N/A


Thanks in advance.
.

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
Macro to convert text bamf Excel Discussion (Misc queries) 0 April 2nd 07 03:56 PM
Convert Text to Numbers in a Macro denise Excel Worksheet Functions 3 September 13th 06 03:25 PM
Having macro convert text to numbers punter Excel Discussion (Misc queries) 3 June 13th 06 11:58 AM
Macro to convert hyperlinks to text Emece Excel Worksheet Functions 1 December 15th 05 02:16 PM
Macro to convert text to date Nortos Excel Worksheet Functions 2 May 11th 05 10:42 AM


All times are GMT +1. The time now is 01:22 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"