Select all shapes of a given color

Q

quickquestion

Is it possible through vba to select every shape on a slide that is a
certain shade of blue while leaving the other colors deselected?

I figure I can make an array that holds the shape numbers of all the
shapes that match a condition, and then select that array when I'm
done.

I'm wondering if there is an easier way, that I can just add the shapes
that match to the selection one at a time?
Thanks
Sorry if you get this question all the time.
 
Q

Quick Question

Shyam Pillai said:
Use the following example and edit it as fit.

Find and replace one color with another on fills, text and borders:
http://skp.mvps.org/pptxp006.htm

Regards,
Shyam Pillai

Thanks a lot Mr. Pillai

I was a little unclear in how I described the problem.

I would like to return the user a selection of all blue items on a
page (for example, or all items larger than a certain size or all of a
certain type of autoshape)

I guess I could make an array that holds the item numbers of all the
items that fit.

I'm just wondering if it is possible to directly

for each shp in activeview.something.slide
if shape_matches_criteria
add shape to selection or add shape to range
end if
next shp

range.select 'if we added the shape to a range

and skip over any array business, just for simplicity's sake.
 

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