I have several shapes on my spreadsheet grouped together that represent a sort of control panel. When the user selects one of the radio options, I want it change the text of one of my buttons (which happens to be a bevel auto-shape assigned to a macro, called bxSortFitler). The shape and the two radio buttons are together in one group, called gpSortFilter. I have made several attempts, and despite spending a substantial amount of time trying to mimic and modify excel's help-file examples, all have been epic fail. Can anyone point me in the proper way to do this?
Failed Attempt 1:
Failed Attempt 2:
Failed Attempt 3:
And the list of failed attempts goes on.
Before grouping the shapes together it worked fine with the following code:
-JTBorton
Another Day, Another Disaster
Failed Attempt 1:
Code:
Dim objButton As Object
Set objButton = ActiveSheet.Groups("gpSortFitler").Groupitems("bxsortfitler")
objButton.TextFrame.Characters.Text = "Sort"
Failed Attempt 2:
Code:
Dim objButton As Shape
objButton.Groupitems("bxsortfilter").TextFrame.Characters.Text = "Sort"
Failed Attempt 3:
Code:
Dim objButton As Shape
Set objButton = ActiveSheet.Shapes.Groupitems("bxsortfilter")
.TextFrame.Characters.Text = "Sort"
And the list of failed attempts goes on.
Before grouping the shapes together it worked fine with the following code:
Code:
Dim objButton As Object
Set objButton = ActiveSheet.Shapes("bxsortfilter")
objButton.TextFrame.Characters.Text = "Sort"
Set objButton = Nothing
-JTBorton
Another Day, Another Disaster