InlineShape.ScaleHeight Property
InlineShape.ScaleHeight Property
Scales the height of the specified inline shape relative to its original size. Read/write Single.

Syntax

expression.ScaleHeight

expression   Required. A variable that represents an InlineShape object.

Example

This example sets the height and width of the first inline shape in the active document to 150 percent of the shape's original height and width.

Visual Basic for Applications
With ActiveDocument.InlineShapes(1)
    .ScaleHeight = 150
    .ScaleWidth = 150
End With



Community Content

Property returns zero
Added by:Thymos
There is a Bug in Office 2007 SP2: This property returns 0, if document opened was saved in Word 1997-2003 DOC or RTF format.
Assigning values is possible, but the Property-Getter returns 0.

Workaround is to save the document as docX or calc scaling manually.

Is there a hotfix available?
© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View