Roger
asked on
An excel cell 'contains' a jpg shape. When I duplicate that cell how do I get the shape name for the newly duplicated shape?
My Worksheet contains a row of cells in which different shapes have been added to some (not all) specific columns. (Their purpose is that clicking each shape provides access to different vba procedures).
Some cells in the row contain comments, but cells with an added shapes do NOT contain comments
Shapes are added via excel Shapes.AddPicture Method
When a Shape is added to a cell, Shape.name (eg 'Picture16') is recorded to enable control of visibility, and shape deletion.
Now I copy the row of shapes to a new row on the same sheet. How do I enumerate the shapes collection to obtain the shape.names for each identified cell that contains a newly copied shape?
Thanks
Kelvin
Some cells in the row contain comments, but cells with an added shapes do NOT contain comments
Shapes are added via excel Shapes.AddPicture Method
When a Shape is added to a cell, Shape.name (eg 'Picture16') is recorded to enable control of visibility, and shape deletion.
Now I copy the row of shapes to a new row on the same sheet. How do I enumerate the shapes collection to obtain the shape.names for each identified cell that contains a newly copied shape?
Thanks
Kelvin
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for rapidly and completely solving my question, and for taking the trouble to expand my knowledge.
Regards, Kelvin
Regards, Kelvin
You're welcome and I'm glad I was able to help.
In my profile you'll find links to some articles I've written that may interest you.
Marty - MVP 2009 to 2014
In my profile you'll find links to some articles I've written that may interest you.
Marty - MVP 2009 to 2014
ASKER
I'll work on this by tomorrow
Kelvin