Quantcast
Channel: NetOffice - MS Office in .NET
Viewing all articles
Browse latest Browse all 1741

New Post: Set the value of OptionButton in Excel

$
0
0
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)
          PCI_no.Value = false;
How can i do it in NetOffice?
Please HELP!

Viewing all articles
Browse latest Browse all 1741

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>