Delete Shapes by mastername

T

Thijs

Hello,

Is it possible to delete shapes by its mastername. For example:

for each shape where shp.master = 'Vlaai'
shape.delete
next

thanks!
 
D

David Esiobu

Thijs said:
Hello,

Is it possible to delete shapes by its mastername. For example:

for each shape where shp.master = 'Vlaai'
shape.delete
next

thanks!

I'm sure you've found an answer by now, but Shape has a Master property. So
you could do a For Each and do:

for each shape in shapeCollection
if shape.master.name = "deletedmaster" then
shape.delete
end if
next shape

You could use the ActivePage.Shapes collection I guess. Depends on your
particular situation.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top