LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Macro to convert ASCII File to Excell

I get files daily from differnet vendors in ASCII format. The line breaks
are noted by the ~ST and the columns are denoted by *. Below is an example
of a few lines.

ISA*00* *00* *ZZ*DHLCIDI *ZZ*TRN200175
*100126*020
8*U*00400*000000142*1*P*~GS*IA*DHLCIDI*TRN200175* 20100126*0208*142*X*004010~ST*
110*1420001~B3**AUSD000000017**MX**20100125*27629* ***DHLC*20100125~B3A*DR*1~C3*U
SD**USD~ITD*05*3****20100209*15~N1*BT*DELL DMS*25*00797056329~N3*501 DELL
WAY~N4
*ROUND ROCK*TX*786820001*US~LX*1~N1*SH*DELL DMS*25*00797056329~N3*200 DELL
WAY B
LDG RR 5 RO~N4*ROUND ROCK*TX*786820001*US~PER*SH*DELL COMPUTER~N1*CN*DEL
TDC~N3*
TUN HUA S RD~N4*TAIPEI**99999*TW~PER*DC*S FANGI J
WEN~P1**20090716*011****1~R1*D
HLC*AIR*AUS*DHL*TPE~RMT*AW*003479667520*276.29~NTE *CUS*DUTIABLE
SHIPMENT~L5*1***
*PKG90~L0*1*39*LB*20*A1***1*PCS**L~SL1*CX***6329
/H1***PP**I~L1*1*269.55*VS*26
955****400****FRT CHRG AMT~L1*2*6.74*VS*674****405****FUEL
SURCHARGE~C3*USD*1.00
0*USD~L3*39*B***27629*******L~SE*29*1420001~ST*110 *1420002~B3**AUSD000000018**MX
**20100125*14857****DHLC*20100125~B3A*DR*1~C3*USD* *USD~ITD*05*3****20100209*15~N
1*BT*DELL DMS*25*00797056329~N3*501 DELL WAY~N4*ROUND
ROCK*TX*786820001*US~LX*1~
N1*SH*DELL DMS*25*00797056329~N3*501 DELL WAY*TX~N4*ROUND
ROCK**786820001*US~PER
*SH*HOLLY ARNOLD~N1*CN*MITAC COMPUTER~N3*1/F 97 HO YEUNG ST*NT~N4*TUEN
MUN*NT*99
999*HK~PER*DC*CHRISTINE
LEE~P1**20090720*011****1~R1*DHLC*AIR*AUS*DHL*HKG~ RMT*AW
*003480062401*148.57~NTE*CUS*DUTIABLE
SHIPMENT~L5*1****PKG90~L0*1*14*LB*3*A1***1


I need to make these into readable lines an columns rather quickly each
morning. I would like to use a macro to do this incase I am out others could
use this as well.

Thank you,
Holly
 
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
How do I convert an Excel 2003 file to ASCII format? Pat Excel Discussion (Misc queries) 1 January 20th 07 02:05 AM
Convert Excel spreadsheet to Ascii file format carley465 Excel Discussion (Misc queries) 2 December 5th 06 06:38 PM
Convert a file to an ASCII Pugh Excel Worksheet Functions 1 November 8th 06 07:03 PM
Importing Ascii file to Excell won't include Null Characters KJM Excel Discussion (Misc queries) 0 September 19th 06 09:03 PM
How do I convert excel file into ASCII text file with alignment? Rosaiah Excel Discussion (Misc queries) 2 June 27th 05 12:17 PM


All times are GMT +1. The time now is 07:12 AM.

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"