Shape.RelativeHorizontalSize procedure builder

Shape.RelativeHorizontalSize (Word)

Returns or sets a WdRelativeVerticalSize constant that represents the object to which a range of shapes is relative.

wdRelativeHorizontalSizeInnerMarginArea - Width is relative to the size of the inside margin; to the size of the left margin for odd pages, and to the size of the right margin for even pages, wdRelativeHorizontalSizeLeftMarginArea - Width is relative to the size of the left margin, wdRelativeHorizontalSizeMargin - Width is relative to the space between the left margin and the right margin, wdRelativeHorizontalSizeOuterMarginArea - Width is relative to the size of the outside margin; to the size of the right margin for odd pages, and to the size of the left margin for even pages, wdRelativeHorizontalSizePage - Width is relative to the width of the page, wdRelativeHorizontalSizeRightMarginArea - Width is relative to the width of the right margin.

Use this property with the WidthRelative property.

ActiveDocument.Background.RelativeHorizontalSize = wdRelativeHorizontalSizeInnerMarginArea