Message 1 of 8
Read Excel in VB 2005

Not applicable
04-12-2007
04:05 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone,
I have created an Add-In successfully and need to access some data in an Excel sheet. The data will be read in (possibly into an array) to provide the user with options in some ComboBoxes on a form. These will be easily editable by the user in Excel. There doesn't have to be a dynamic link, like an SQL datasource could provide, though this would be useful.
I have been surprised how difficult this is proving to be. I (wrongly) assumed Excel to Datagrid would be a well trodden path. So far I can only think I will have to establish a connection with a running Excel application (using Interop). Does anyone have experience with VB (Visual Studio 2005) and Excel explaining how I can simply read the data in from the .xls file?
Thank you.
Regards
Chris Molland
I have created an Add-In successfully and need to access some data in an Excel sheet. The data will be read in (possibly into an array) to provide the user with options in some ComboBoxes on a form. These will be easily editable by the user in Excel. There doesn't have to be a dynamic link, like an SQL datasource could provide, though this would be useful.
I have been surprised how difficult this is proving to be. I (wrongly) assumed Excel to Datagrid would be a well trodden path. So far I can only think I will have to establish a connection with a running Excel application (using Interop). Does anyone have experience with VB (Visual Studio 2005) and Excel explaining how I can simply read the data in from the .xls file?
Thank you.
Regards
Chris Molland