View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
SkyKid SkyKid is offline
external usenet poster
 
Posts: 4
Default C# adding textbox to excel sheet

Anytime I try to add a textbox to my excel sheet in the following manner an
exception is generated.

Excel.Shape textbox;
textbox =
(Excel.Shape)excelWorksheet.Shapes.AddFormControl( Excel.XlFormControl.xlEditBox, cellx, celly, cellwidth, cellheight);

What am I doing wrong?