ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to add a button in Application Level Excel add-in? (https://www.excelbanter.com/excel-programming/384945-how-add-button-application-level-excel-add.html)

Raghu

How to add a button in Application Level Excel add-in?
 
I am creating an APPLICATION LEVEL Excel Add-in (using vsto 2500 SE, C#).
So I do not have access to the document-level classes? So I cannot do
this.Controls.Add(...) to dynamically add a button to a worksheet?

I am trying to let the user create a List in the excel 2003 worksheet, and
click my add-in action to create a button next to the list, and let the user
click on that button to take some action on that list. A generic handler
(C#) will handle the button click event, and linking of button to list would
be based on the name of the button and the list (any better way?).

How do I dynamically add a button to a worksheet when my code is an
application level excel add-in?

Thanks for you time.


All times are GMT +1. The time now is 05:07 PM.

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