View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
David Cuthill[_2_] David Cuthill[_2_] is offline
external usenet poster
 
Posts: 17
Default Determining the group a picture or textbox is a member of

I believe I have figured it out ... after much searching.

ActiveSheet.Shapes(PictName).ParentGroup.Name

gives me the name of the group the shape belongs to.

Thanks


-----Original Message-----
Sorry, not sure how to do that. Is this a real group that

Excel recognizes,
or just what you consider to be a group? What were the

mechanics of the
grouping process?

--

Vasant



"David Cuthill"

wrote in message
...
I'm sorry - I am refering to a picture or a label that

is
inserted on a worksheet not a user form. The picture and
label form a grouped image and I want to determine the
group name if one of the grouped items is selected.


David

-----Original Message-----
If the controls are grouped using Frame controls, you

can
use the Parent
property of the control to return the Frame that the

control belongs to. Or,
depending on how you have formed the groups, you can

use
the GroupName
property of the control.

--

Vasant


"David Cuthill"

wrote in message
...
If I select an item (picture or textbox) of a group

how
do
I determine what the group or group name the item is

a
member of?

David


.



.