Scales the width of the shape by a specified factor. For pictures and OLE objects, you can indicate whether you want to scale the shape relative to the original size or relative to the current size. Shapes other than pictures and OLE objects are always scaled relative to their current width.
expression.ScaleWidth(Factor, RelativeToOriginalSize, Scale)
expression Required. An expression that returns one of the objects in the Applies To list.
Factor Required Single. Specifies the ratio between the width of the shape after you resize it and the current or original width. For example, to make a rectangle 50 percent larger, specify 1.5 for this argument.
|MsoTriState can be one of these MsoTriState constants.|
|MsoScaleFrom can be one of these MsoScaleFrom constants.|
This example scales all pictures and OLE objects on
myDocument to 175 percent of their original height and width, and it scales all other shapes to 175 percent of their current height and width.
Set myDocument = ActiveDocument For Each s In myDocument.Shapes Select Case s.Type Case msoEmbeddedOLEObject, msoLinkedOLEObject, _ msoOLEControlObject, _ msoLinkedPicture, msoPicture s.ScaleHeight 1.75, True s.ScaleWidth 1.75, True Case Else s.ScaleHeight 1.75, False s.ScaleWidth 1.75, False End Select Next