Good days all.
I have 7-12 thousand lines of invoice files every month. While transferring them to the main program, the main program accepts a maximum of 101 lines of csv files. The first line of each section should also be a fixed header line. It is necessary to assign successive numbers to each file.
Example;
I have 10000 (ten thousand) lines of june.ods file.
-
The first line (header line) has column headings such as Date, Description, InvoiceNo, Amount, VAT Base, VAT. (When the file is split, this line should be fixed in the first lines of all csv files.)
-
I need a macro which will create files like;
june-001.csv
june-002.csv
…
…
…
june-099.csv
june-100.csv
by dividing the (10000 line) june.ods file into 100 line files and adding the title in the first line of the main file to the first line of each file.
Thanks for your help in advance, regards.