Word - Word 2007 bug: Inlineshapes(1).scale width returns 0

Asked By jkorcho on 11-Jul-12 01:59 PM
The following code runs correctly in Word 2003, but always returns 0 in Word 2007.

Sub AAScaleWidth()
Dim SelectedPicture1 As InlineShape
Set SelectedPicture1 = Selection.InlineShapes(1)
MsgBox SelectedPicture1.ScaleWidth
End Sub

The same thing happens with ScaleHeight. Is there a known workaround for this bug?

John


Stefan Blom replied to jkorcho on 28-Jul-12 03:07 PM
Whatever the problem was in Word 2007, it works correctly in Word 2010.

--
Stefan Blom
Microsoft Word MVP