on-internet
← Community

How to convert Excel file with multiple sheets to a set of TSV files?

Stack Overflow ·

What addition clde to be added to cconvert excel file with multiple sheets to Tsv file in the below code. note:The below code convert an excel file with one sheet to Tsv.It does not handle an excel sheet with multiple sheet Public Sub Main() Dim oExcel As Object Dim oBook As Object Dim sFileName As String Dim sFileNameOnly As String Dim sXlsPath As String Dim sTsvPath As String sFileName = CStr(Dts.Variables("User::Xls_File_Name").Value) sXlsPath = "H:\Xls_Files\" + sFileName sFileNameOnly = Path.GetFileNameWithoutExtension(sFileName) sTsvPath = "H:\Xls_Files\" + sFileNameOnly + ".Txt" oExcel

Comments

Sign in or sign up to comment and upvote.

No comments yet.