Hi guys,
When accessing a workbook, I'd like to be able to select the desired sheet and chart data from it. Now, I have modified a few snippets to look like this:
However, the display shows the (' stuff $') rather than just (stuff). How do go around this? I've sifted tons of links but got nowhere near except for some very different topics.
Thanks guys!
When accessing a workbook, I'd like to be able to select the desired sheet and chart data from it. Now, I have modified a few snippets to look like this:
Code:
Dim conn As New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & TextBox1.Text & ";Extended Properties=""Excel 12.0 Xml;HDR=YES"";")
conn.Open()
Dim dtSheets As DataTable = conn.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, Nothing)
Dim SheetRows As DataRow
For Each SheetRows In dtSheets.Rows
ListView1.Items.Add(SheetRows("TABLE_NAME").ToString)
Next
conn.Close()
Thanks guys!