LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Macro to format text

Use the text to column function

Columns("A:A").Select
Selection.TextToColumns Destination:=Range("A1"),
DataType:=xlFixedWidth, _
FieldInfo:=Array(Array(0, 2), Array(3, 9), Array(6, 2), Array(31, 9), _
Array(32, 2), Array(43, 9), Array(46, 2), Array(63, 9)), _
TrailingMinusNumbers:=True


"JN" wrote:

Hi,

I have a few thousand rows that are paired like the following:

1ab ][ 128103406101993004040000
10.90.134.2 | 00:0E:5C:E6:CA:AA

What i would like is to have just one row in the following format:

A1 B1 C1
D1
1ab 10.90.134.2 00:0E:5C:E6:CA:AA 128134...

Thanks for your help.
JN



 
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 Change Changing Date Format Data to Text Rod Bowyer Excel Discussion (Misc queries) 3 October 11th 07 12:02 PM
How do I format a MSGBOX to show text and variables in a macro? Pank New Users to Excel 4 March 22nd 07 01:10 PM
Date format when using Text Input Wizard and recording a macro Dave H. Excel Programming 0 July 20th 06 05:48 PM
FORMAT COMMENT TEXT WITH MACRO Sunil Patel Excel Programming 4 June 30th 05 05:13 PM
Saving text file in excel format through macro... Trevor[_4_] Excel Programming 3 June 14th 04 06:24 PM


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

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

About Us

"It's about Microsoft Excel"