DistanceFromLeft Property Example
This example adds a border around each frame in the active document and sets the distance between the frame and the border to 5 points.
For Each aFrame In ActiveDocument.Frames
With aFrame.Borders
.Enable = True
.DistanceFromLeft = 5
.DistanceFromRight = 5
.DistanceFromTop = 5
.DistanceFromBottom = 5
End With
Next aFrame
This example adds a border around the first paragraph in the active document and sets the distance between the text and the left border to 3 points.
With ActiveDocument.Paragraphs(1).Borders
.Enable = True
.DistanceFromLeft = 3
End With