ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   c# & InterOp & OptionButtons (https://www.excelbanter.com/excel-programming/353123-c-interop-optionbuttons.html)

Timo

c# & InterOp & OptionButtons
 
Hello there,

Well, right know I'am really frustrated about Interop and Office. I wanted
to open an existing excel. Within I have some different controles. Some of
them shapes and some of them Optionbuttons.
When I opend my excel set reference to my workbook and to my sheet I wanted
to access my optionbuttons. Especially the values. It was not possible. I got
an cast error. I do not understand why.
It was possible to get all controls within a list and there names. Than I
casted to an Optionbutton. I got an error.
Know someone here how to access optionbuttons within excel in c#? Get the
values???

Regards
Timo


All times are GMT +1. The time now is 09:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com