LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Retrieving the values of Excel check boxes in .NET

We have a 2003 spreadsheet with a check box. We are trying to retrieve
the values from this through a .NET 2008 windows application.
1. We have included Office.Interop.Excel and VBE.Interop.Forms in the
code.
2. We have added the checkbox from the toolbar and not through code.
3. We tried
Excel.CheckBox cb =
(Excel.CheckBox)workSheet.Shapes.Item("CheckBox4") .OLEFormat.Object;
and got
Specified Cast is not Valid
4. We tried
Forms.CheckBox cb =
(Forms.CheckBox)workSheet.Shapes.Item("CheckBox4") .OLEFormat.Object;
and got
Specified Cast is not Valid

Please help.

*** Sent via Developersdex http://www.developersdex.com ***


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Check Boxes In Excel frpkaren Excel Discussion (Misc queries) 2 March 28th 07 09:18 AM
Check Boxes In Excel bigwheel Excel Discussion (Misc queries) 0 March 28th 07 12:19 AM
Help with Comparing values and retrieving values in Excel!!!!!! [email protected] Excel Worksheet Functions 1 November 17th 06 12:21 AM
How do i set up check boxes in excel? Mountaintop Ryan New Users to Excel 1 August 17th 06 11:59 PM
Using Check boxes in Excel Louise Excel Worksheet Functions 4 April 4th 06 02:32 PM


All times are GMT +1. The time now is 06:51 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"