nemmi69
Well-known Member
- Joined
- Mar 15, 2012
- Messages
- 938
- Office Version
- 365
- 2019
- 2016
- 2013
- Platform
- Windows
Hi,
I am using the following code
The line "objX.Control.Value = True" returns the error "Run-time error '438': Object doesn't support this property or method."
Any ideas?
I am using the following code
Code:
Sub WhichOption() For Each objX In ActiveSheet.OLEObjects
If objX.Enabled = True And objX.Visible = True And TypeName(objX.Object) = "OptionButton" Then
If objX.Control.Value = True Then
MsgBox "Name = " & objX.Name & " Typ = " & TypeName(objX.Object) & " is selected"
Exit For
End If
End If
Next objX
End Sub
The line "objX.Control.Value = True" returns the error "Run-time error '438': Object doesn't support this property or method."
Any ideas?