How to set Optionbox value from code?



I have an Excel applciaiton, it reads values from an Access database and
fills in multiple worksheets with the databse information.
One of these worksheets contains a group box with two option boxes labelled
YES and NO respectively.
I need to set these option box values from the database. The option box
controls are NOT bound to any worksheet cells.

I have tried the following:
assess.Shapes("optCommitYES").ControlFormat.Value = msoTrue
(assess is a worksheet object name)
and VBA blows up with an Error 1004: "Unable to set the Value property of
the OptionButton class."

If this were Access, I'd set/retrieve the value through the group box
control, but this is Excel, and things don't work that way here...so hwo do i
set the control(s) value(s) to selected/unselected via code from the db value?
Will I be forced to select one or more cells to bind these option button
controls to (trying to avoid that as it will mean changing already approved
template files yet again), or what?
.



Relevant Pages

  • pivottable and OLAP cubes
    ... I have OLAP cubes on worksheets which draw data from an access database. ... Sometimes, some of these queries return no records, because there are none. ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Am I making things too complicated?
    ... > excel group or a MS access group, its a little bit of everything. ... > the worksheets are actually just SQL query which draw information from ... > the MS access database. ...
    (microsoft.public.powerpoint)
  • Update all Sheets
    ... I have 2 linked queries to My access database. ... I have 4 Worksheets in my Excel file. ... For Each qryTab In wks.QueryTables ...
    (microsoft.public.excel.misc)
  • Am I making things too complicated?
    ... excel group or a MS access group, its a little bit of everything. ... the worksheets are actually just SQL query which draw information from ... the MS access database. ...
    (microsoft.public.powerpoint)
  • Re: certificates are being lost consistently
    ... first is that each sheet is represented as part of the VB Project, ... controls on a sheet ... objects instead of deleting them. ... > adds or deletes controls, like buttons on worksheets, will not retain ...
    (microsoft.public.office.developer.vba)