In VBA I would like to test if an OptionButton is chiled of an OptionGroup.
I wrote this test
OptionButton.Parent.ControlType = acOptionGroup
It's all OK if this test is executed on an OptionButton which IS CHILD of
an OptionGroup, but if the OptionButton is a standalone control I get the
following error:
Run-time error '2465':
Error defined by application or object
I know I can use an error manager and test that specific error, but I would
like to know if there exists an alternative way.
Thanks.
--
PBsoft di Gabriele Bertolucci
www.pbsoft.it
skype: pbsoftsolution