I'm trying to assign a value to an option button through .OLEobjects but I'm stuck as to what to do. Here's what I got
with sheets.1
For Each cOBtn In .OLEObjects
posInstr = InStr(cOBtn.Name, "oBtn")
If posInstr > 0 Then
cOBtn.Value = True
End If
Next
end with
Obviously .Value doesn't work.. What should I put here?
Use this
In such a case ensure that you are actually working with an option button and nothing else :)