Select a shape based on particular shape data?

Started by freshlychurnedbutter, February 03, 2022, 10:50:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

freshlychurnedbutter

How can I select a shape based on a particular shape data entry?

Yacine


dim shp as shape
for each shp in activepage.shapes
if shp.cellexists("prop.SoAndSo",visexistsanywhere) then
if shp.cells("prop.SoAndSo").resultstr("") = "ThisAndThat" then
activewindow.select shp, visselect
endif
endif
next shp
Yacine

miless2111s

If you have a look at the thread where I asked a similar question you will see many possible ways of selecting multiple shapes depending on entries in the shapesheet, just in case you're trying to select more than one item or have a lot of shapes on the page: http://visguy.com/vgforum/index.php?topic=9739.0

freshlychurnedbutter

Thanks for the reference. However, as far as I can tell, the VBA script is operating in a document and parsing through shapes on a page. But I am actually in the "edit master shape" window and need to parse through shapes within the "edit master shape" window. I don't know the proper syntax that lands me in the "edit master shape" window.