ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Find and read/update option button (https://www.excelbanter.com/excel-programming/299115-find-read-update-option-button.html)

David Chase

Find and read/update option button
 
I have an Access program that reads and populates an Excel workbook.
However, now I want to be able to read and/or update the values. The
workbook has 4 option buttons (radio buttons) that when you click on one,
the current selection is turned off. In Access we call this an Option
Group. Someone created a template and is no longer available. Thanks.

David



Bob Phillips[_6_]

Find and read/update option button
 
David,

Do you just want to clear the OB from code?

xlApp.Activeworkbook.ActiveSheet.OptionButtons("Op tion Button 1").Value
= False


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"David Chase" wrote in message
...
I have an Access program that reads and populates an Excel workbook.
However, now I want to be able to read and/or update the values. The
workbook has 4 option buttons (radio buttons) that when you click on one,
the current selection is turned off. In Access we call this an Option
Group. Someone created a template and is no longer available. Thanks.

David





David

Find and read/update option button
 
Actually, I figured out the named range name and used the following and
it works. Thanks.

m_objWorkbook.ActiveSheet.Range("wfam").Value = 1

David




*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


All times are GMT +1. The time now is 03:11 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com