Original size of an inline picture

B

Bear

Can anyone suggest a strategy or some code to determine the original size of
an inline picture? After several transformations (in Word) is the original
size lost, or is it retained and still available via VBA somehow?

Bear
 
J

Jean-Guy Marcil

Bear was telling us:
Bear nous racontait que :
Can anyone suggest a strategy or some code to determine the original
size of an inline picture? After several transformations (in Word) is
the original size lost, or is it retained and still available via VBA
somehow?

This would do it:

Dim inlshpTest As InlineShape

Set inlshpTest = Selection.InlineShapes(1)

With inlshpTest
MsgBox Round(PointsToInches((.Height * 100) / .ScaleHeight), 2)
MsgBox Round(PointsToInches((.Width * 100) / .ScaleWidth), 2)
End With
 

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