select specific objects by names or by nature

iaudio1233

Board Regular
Joined
Mar 7, 2014
Messages
158
Hi,

Is there any command or simple vba to select specific objects or images ?

case :
20 triangles in the names : "triangle1"....."triangle20" and 20 circles.."circle1"..."circle20"
a.just want to select the triangles
b. rename each to "shape01"...."shape20"


Regards,

iaudio1233
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
I have a similar question except the shape is a Polyline. I tried looking for msoPolyline but it didn't seem to come up.

The problem I'm trying to resolve is that I have a command button on the spreadsheet that activates the creation of a polyline but before it draws it, it deletes all shapes that exist on the page which also seems to delete the command button. If I can limit the deletion of shapes to just the polyline, then the button should stay. (or the other choice is to run the delete routine but if it encounters the command button, to not delete it).
 
Upvote 0

Forum statistics

Threads
1,215,379
Messages
6,124,608
Members
449,174
Latest member
ExcelfromGermany

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top