G
Guest
This line of code works fine if I know the name of the Sheet
Dim ExportCommand As New System.Data.OleDb.OleDbCommand("SELECT * INTO
[Text;DATABASE=C:\Temp].[Import.csv] FROM [Test$]", ExcelConnection)
Also, I have seen code samples that can parse out the sheet names. If I
know that an Excel file contains only one sheet, is there a way to link into
that sheet without knowing its name? I would like to avoid the parsing if
that is possible.
Dim ExportCommand As New System.Data.OleDb.OleDbCommand("SELECT * INTO
[Text;DATABASE=C:\Temp].[Import.csv] FROM [Test$]", ExcelConnection)
Also, I have seen code samples that can parse out the sheet names. If I
know that an Excel file contains only one sheet, is there a way to link into
that sheet without knowing its name? I would like to avoid the parsing if
that is possible.