Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How to bind events for formsControls inside Excel

Hi,
I am developing an Excel Addin using VS2008 and VSTO3.0,On click of one of
the buttons of the ribbon it creates check boxes inside Excel.to create
checkBox i followed the following approach

Excel.Range cell = _mWorkSheet.Cells[i, 1] as Excel.Range;
Microsoft.Office.Interop.Excel.Shape shape;
// shape =
_mWorkSheet.Shapes.AddFormControl(Microsoft.Office .Interop.Excel.XlFormControl.xlDropDown,
Convert.ToInt32(cell.Left), Convert.ToInt32(cell.Top),
Convert.ToInt32(cell.Width), Convert.ToInt32(cell.Height));
shape =
_mWorkSheet.Shapes.AddFormControl(Microsoft.Office .Interop.Excel.XlFormControl.xlCheckBox,
Convert.ToInt32(cell.Left), Convert.ToInt32(cell.Top),
Convert.ToInt32(cell.Width), Convert.ToInt32(cell.Height));
shape.Name = "checkbox"+i.ToString();

Now i want to know how can i bind any event to checkboxs inside excel cell.

Thanks,
Patro
Reply
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
How to late-bind Excel maurizio Excel Programming 6 June 7th 06 11:12 AM
How do I bind a list in Excel to a combo box on a userform MikeM Excel Programming 3 June 14th 05 01:53 PM
Bind datatable to excel worksheet gianni Excel Programming 0 April 28th 05 02:54 PM
How to use mouse events inside an Excel Sheet ? mike Excel Programming 7 July 28th 04 12:23 PM
Want to Bind ADO Dataset to Excel 2003 Pivottable Dan[_19_] Excel Programming 0 January 21st 04 01:26 PM


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

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"