Borders.DistanceFrom Property
Word Developer Reference |
Returns or sets a value that indicates whether the specified page border is measured from the edge of the page or from the text it surrounds. Read/write WdBorderDistanceFrom.
Syntax
expression.DistanceFrom
expression Required. A variable that represents a Borders collection.
Example
This example adds a single border around each page in section one in the active document and then sets the distance between each border and the corresponding edge of the page.
Visual Basic for Applications |
---|
|
This example adds a border around each page in the first section in the selection, and then it sets the distance between the text and the page border to 6 points.
Visual Basic for Applications |
---|
|
See Also