Adding checkbox to worksheet in C#

G

Guest

I am using Excel object model in C# using Office XP PIA.
I want to add a checkbox to the worksheet programmatically. In VBA I can add
a checkbox using the 'CheckBoxes' collection's Add method but there is no
such collection in PIA classes.

regards
 
N

NickHK

From the macro recorder::

ActiveSheet.OLEObjects.Add(ClassType:="Forms.CheckBox.1", Link:=False, _
DisplayAsIcon:=False, Left:=642.75, Top:=159.75, Width:=103.5,
Height _
:=21.75).Select

NickHK
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top