Grouping picture/shapes with VBA - PPT 2007

R

Renaat Sohl

I am trying to create a bit of VBA code in Powerpoint that will scroll through a slide and group all shapes that are of the type msoPicture.

I have tried to create a range and then apply the Group function to that range.

To create the range I am going through all shapes and add the names of the shapes that are pictures to a string (like ArrayStr = "Shape 1",'Shape 7","Shape 9"). I than enter that string into the range by using an array (like range(array(ArrayStr)).

But when I do so the systems puts " " around the string which makes it unreadable to the array. (at least that seems the problem to me).

Can anyone tell me how I should do this?
 

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