I had a feeling I was going to learn something from you.
I never noticed that property before. OK, I might be able to get you one step closer.
If you have tried this:
Set cb = ActiveSheet.OLEObjects("CheckBox1")
MsgBox cb.GroupName
You have noticed it does not work.
But this does:
Set cb = ActiveSheet.OLEObjects("CheckBox1").Object
MsgBox cb.GroupName
That is one of those funny things about OLEobjects embedded on worksheets. Sometimes you need to use .Object before being able to access a property, and other times it is not necessary. And I have no idea why and when it is necessary; I only know that it at first I do not succeed, try adding .Object.
If you get this to work in creating a grouping, let us know.
_____________________
Added later ...
Now that I have spent some time playing around with GroupName for OLEobject option buttons, it is exactly the ticket I was hoping it would be. You have no idea how difficult I was making life for myself simply because I was ignorant of this property.
Thanks again for posting the question!
Bookmarks