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

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
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,214,839
Messages
6,121,887
Members
449,057
Latest member
Moo4247

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