Microsoft Excel Queston
VBA Code Request
I have a software package that exports data in a text file in the following format. It is split into 7 columns each column seperated by 5 spaces. To signify a new row there are four spaces then a carriage return. I need to write a simple code routine that I can attach to a button in Excel. The button when clicked will let me select the text file (via the normal File Cirectory method) Im trying to import and then the data will be added into an Excel sheet in columns A to G and over as many rows as there are carriage returns in the text file. For info the file is constructed like this where * indicates a space and CR indicates a carriage return. Note: There are thousands of lines!!!!
*101*****102*****103*****1
04*****105
*****106**
***107****
CR
*108*****109*****110*****1
11*****112
*****113**
***114****
CR
*115*****116*****117*****1
18*****119
*****120**
***121****
CR
etc. etc
Thanks in advance for any help!!!
Start Free Trial