K
Kigorw
I try to read value from Excel checkbox but get error:
using Microsoft.Office.Interop.Excel;
using System.Reflection;
using MSForm = Microsoft.Vbe.Interop.Forms;
.........................
OLEObject theObject = null;
theObject =
(OLEObject)excelWorksheet.OLEObjects("CheckBox1"); // get object
MSForm.CheckBox cb = (MSForm.CheckBox)theObject; //
error!!! when try to cast....
Thanks for help
using Microsoft.Office.Interop.Excel;
using System.Reflection;
using MSForm = Microsoft.Vbe.Interop.Forms;
.........................
OLEObject theObject = null;
theObject =
(OLEObject)excelWorksheet.OLEObjects("CheckBox1"); // get object
MSForm.CheckBox cb = (MSForm.CheckBox)theObject; //
error!!! when try to cast....
Thanks for help