Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a text file that is not in a state to just import i.e. the data is
not in columns - the job no is centred on the document and there are underlines that I don't want importing eg Postion 50 Line 1: Job No: 1234567 Postion 1 Line 2: Analysis Code (len 5) Position 35 Line 2: Cost (99999999.99) Position 63 Line 2: Sales (99999999.99) The lines to be imported always start with a 0 or a 7 except for the Job No. How can I programmatically import this file so that it gives me 4 columns Col 1 = Job No Col 2 = Analysis Code Col 3 = Cost or Sales The job No needs to be repeated in col 1 on each line until the next job no is found. Thanks The file looks like this Job No: 1234567 00123 99.99 00356 100.99 70000 1000.00 I would like the import to look like this: 1234567 00123 99.99 1234567 00356 100.99 1234567 70000 1000.00 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
programatically selecting columns to import text into | Excel Discussion (Misc queries) | |||
Programatically close a file without saving | Excel Programming | |||
Creating a PDF file programatically from Excel | Excel Discussion (Misc queries) | |||
Programatically saving an excel .csv file to .xls file... | Excel Programming | |||
Need help on How to programatically Import VBA Project Excel Objects, Forms, Modules | Excel Programming |