Relative to original picture size

R

rgoubet

Hi,

How can I change the "Relative to original picture size" control
(Picture properties > Size Tab) through VBA? I can't see any
corresponding property in the InlineShape object, and recording a macro
to make the change doesn't reveal anything interesting.

Thanks!

Raph
 
M

macropod

Hi Raph,

Check out the ScaleHeight and ScaleWidth methods

For example, the following code scales the selected image to 70% of its
original size.

With Selection.ShapeRange
.ScaleHeight 0.7, True
.ScaleWidth 0.7, True
End With

Cheers
 

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