View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
NickHK NickHK is offline
external usenet poster
 
Posts: 4,391
Default Adding checkbox to worksheet in C#

From the macro recorder::

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

NickHK

"Abhimanyu Sirohi" wrote in
message ...
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