Does anybody know how to access the full set of attributes of a control when grouped?
I am trying to access the properties of a grouped set of checkboxes (for grouped I mean selected and right click - > Group)
It appears that grouped controls are not accessible through OLEObjects() but they can be accessed as shapes. For example, the following code will set all elements in the group Advertisement2 to .Visibility = False:
However, most other properties, such as .Enabled or .Value are not accessible (probably because the controls are considered shapes).
I have tried all sort of solutions, including using
.groupItems("ControlName").Value
or
.groupItems("ControlName").Object.Value
But to no avail..
Does anybody have a clue about this and hopefully knows a workaround?
Thanks!
Al
I am trying to access the properties of a grouped set of checkboxes (for grouped I mean selected and right click - > Group)
It appears that grouped controls are not accessible through OLEObjects() but they can be accessed as shapes. For example, the following code will set all elements in the group Advertisement2 to .Visibility = False:
Code:
For Each T In ActiveSheet.Shapes("Advertisement2").GroupItems
T.Visible = True
Next
However, most other properties, such as .Enabled or .Value are not accessible (probably because the controls are considered shapes).
I have tried all sort of solutions, including using
.groupItems("ControlName").Value
or
.groupItems("ControlName").Object.Value
But to no avail..
Does anybody have a clue about this and hopefully knows a workaround?
Thanks!
Al