PDA

View Full Version : Skip line loop



Signum12
02-08-2012, 09:18 PM
Hi i m having problem with using a INSTR function to offset data into spreadsheet which requires me to skip a line and get data from the next line

For eg

Ref no.
Jan12 222.00. 222.00. 222.00
Dec10. 111.00. 111.00. 111.00
Dec11. 111. 111. 111.

Total.

Each acc may contain various dates but i wan to offset those lines for each account until then TOTAL and loop it . Any ideas?

Signum12
02-08-2012, 09:21 PM
Coding

If instr(1, sLine,"ref no." , vbtextcompare) > 0 then
???

Signum12
02-08-2012, 10:00 PM
My input file is a .txt

EGMono
02-12-2012, 10:45 AM
I'm not sure, exactly, what you're trying to end up with. Are you trying to read in a text file and file and fill in a spreadsheet? Are you trying to use the values that you are reading in, or just the totals? Is each line a separate record, or do they span multiple lines? Are non record items on their own lines?