List Excel Tabs

  • Thread starter Thread starter meyerryang
  • Start date Start date
M

meyerryang

I have a tough question. If you are importing an excel spreadsheet is there
anyway to list the tabs in the spreadsheet outside of the wizard?

For example, I create a button that populates the directory name of the
spreadsheet in a textbox. Now that the spreadsheet is seleted how can I get
a listbox to show all the tabs? Any ideas would help. Thanks.
 
I have a tough question. If you are importing an excel spreadsheet is there
anyway to list the tabs in the spreadsheet outside of the wizard?

For example, I create a button that populates the directory name of the
spreadsheet in a textbox. Now that the spreadsheet is seleted how can I get
a listbox to show all the tabs? Any ideas would help. Thanks.

if you use Excel automation, you can access the worksheets collection
of the workbook object. Then you'd just iterate through those and
write the individual names to the textbox/listbox...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top