User-664618749 posted
Hi,
I am automating an Excel spreadsheet from within an ASP.NET application as follows (using the Microsoft.Office.Interop.Excel assembly):
Application application = new ApplicationClass();
application.Visible = false;
Workbook workbook = application.Workbooks.Open(filepath,
Type.Missing, Type.Missing, Type.Missing, Type.Missing,
Type.Missing, Type.Missing, Type.Missing, Type.Missing,
Type.Missing, Type.Missing, Type.Missing, Type.Missing,
Type.Missing, Type.Missing);
Worksheet worksheet = (Worksheet)workbook.Worksheets["myForm"];
The Excel worksheet contains a Form with several checkboxes. My question is how to check or uncheck a checkbox within this form using the object model above?
Many thanks for any help or suggestions!
Martin