Format related procedures in class InlineShape (Word VBA)

This page presents procedures from class InlineShape related to the theme Format: Borders, HorizontalLineFormat, LinkFormat, OLEFormat, ScaleHeight and ScaleWidth

Borders

Returns a Borders collection that represents all the borders for the specified shape.

For information about returning a single member of a collection, see Returning an object from a collection.

ActiveDocument.Range.InlineShapes(1).Borders =

HorizontalLineFormat

Returns a HorizontalLineFormat object that contains the horizontal line formatting for the specified InlineShape object.

ActiveDocument.InlineShapes(1).HorizontalLineFormat _ 
 .PercentWidth = 50

LinkFormat

Returns a LinkFormat object that represents the link options of the specified inline shape that is linked to a file. Read/only.

Dim lftLinkFormat As LinkFormat
Set lftLinkFormat = ActiveDocument.Range.InlineShapes(1).LinkFormat

OLEFormat

Returns an OLEFormat object that represents the OLE characteristics (other than linking) for the specified inline shape.

Dim oleOLEFormat As OLEFormat
Set oleOLEFormat = ActiveDocument.Range.InlineShapes(1).OLEFormat

ScaleHeight

Scales the height of the specified inline shape relative to its original size.

With ActiveDocument.InlineShapes(1) 
 .ScaleHeight = 150 
 .ScaleWidth = 150 
End With

ScaleWidth

Scales the width of the specified inline shape relative to its original size.

With ActiveDocument.InlineShapes(1) 
 .ScaleHeight = 150 
 .ScaleWidth = 150 
End With