I am trying to set the value of OptionButton in Excel but can't do it.
The code:
Object PCI_no = _myxlWorkSheet.OLEObjects("rob_tabDev_row12_PCI_N");
if (PCI_no != null)
{
xcel.OptionButton PCI_no1 = (Excel.OptionButton)PCI_no;
PCI_no1.Value = false;
}
When use Microsoft.Office.Interop.Excel
I can do it like this:
var PCI_no = _myxlWorkSheet.OLEObjects("rob_tabDev_row12_PCI_N").Object;
if (PCI_no!=null)
Please HELP!
The code:
Object PCI_no = _myxlWorkSheet.OLEObjects("rob_tabDev_row12_PCI_N");
if (PCI_no != null)
{
xcel.OptionButton PCI_no1 = (Excel.OptionButton)PCI_no;
PCI_no1.Value = false;
}
When use Microsoft.Office.Interop.Excel
I can do it like this:
var PCI_no = _myxlWorkSheet.OLEObjects("rob_tabDev_row12_PCI_N").Object;
if (PCI_no!=null)
PCI_no.Value = false;
How can i do it in NetOffice?Please HELP!