First - thank you for the great project!
When an Excel file contains some Named Ranges in addition to Worksheets, it seems that GetWorksheetNames() returns both sheets and named ranges together.
I'd like to ignore Named Ranges, also GetColumnNames doesn't work with Named Ranges (it appends $).
Any suggestions?
For example the following code gives an error:
'[Named Range]$' is not a valid name. Make sure that it does not include invalid characters or punctuation and that it is not too long.
foreach (var sheetName in excel.GetWorksheetNames() )
{
foreach (var columnName in
excel.GetColumnNames(sheetName)
)
{
listBox1.Items.Add(sheetName + "---" + columnName);
}
}