Enum

J

John

Is there a way to enumerate all the properties of an object such as a
picture in Powerpoint? Want to duplicate the function of the format
painter progamatically
 
S

Steve Rindsberg

Is there a way to enumerate all the properties of an object such as a
picture in Powerpoint? Want to duplicate the function of the format
painter progamatically

Shapes and ShapeRanges in PPT have the following methods:

.Pickup
.Apply

that replicate what you'd get by using the format painter manually.

Be cautious about picking up formatting from a Picture shape and then applying
it to non-picture shapes. Attempting to apply some picture properties to a
non-picture shape can cause some versions of PPT (2002, IIRC) to crash.

If you run into that, you'll have to restart Windows or use TaskManager to end
the Powerpnt.EXE task in order to start PPT again.
 

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