Importing multiple TSV files into 1 tab in TSV

kinki_g

New Member
Joined
Feb 14, 2021
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
Hi, i have several tsv files that i would like to import the records in all the tsv file into 1 tsv file.
The records of all tsv file start with row 5 and row1-4 is the header that can be ignore.
Any suggestion how to perform this?

I had try with command: copy *.tsv all.tsv, but it had copy all the rows into all.tsv which i still need to manually remove the headers for each tsv files.

Thank you.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
if you use VBA to read the files line by line, and then immediately write them to the new file, you can just skip the first 5 lines as you are transferring. it wont be as fast as DOS copy but it will fix your problem
 
Upvote 0
Welcome to MrExcel forums.

Hi, i have several tsv files that i would like to import the records in all the tsv file into 1 tsv file.
The records of all tsv file start with row 5 and row1-4 is the header that can be ignore.
Any suggestion how to perform this?
Try adapting the code at Request for VBA code for importing multiple tab-delineated .txt files into Excel 2010

You'll need to change *.txt to *.tsv, destination cell and the startRow lines. The TextFileColumnDataTypes line can probably be deleted, or record a macro with the Data -> From Text (legacy wizard) if you need to set the data formats for the columns and incorporate the recorded code into the linked code.
 
Upvote 0
Welcome to MrExcel forums.


Try adapting the code at Request for VBA code for importing multiple tab-delineated .txt files into Excel 2010

You'll need to change *.txt to *.tsv, destination cell and the startRow lines. The TextFileColumnDataTypes line can probably be deleted, or record a macro with the Data -> From Text (legacy wizard) if you need to set the data formats for the columns and incorporate the recorded code into the linked code.
Thank you John for the guideline, it works. (y)
 
Upvote 0

Forum statistics

Threads
1,213,543
Messages
6,114,245
Members
448,555
Latest member
RobertJones1986

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top