Skip to content

Latest commit

 

History

History
58 lines (36 loc) · 1.24 KB

Word.Frame.VerticalDistanceFromText.md

File metadata and controls

58 lines (36 loc) · 1.24 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Frame.VerticalDistanceFromText property (Word)
vbawd10.chm153747465
vbawd10.chm153747465
Word.Frame.VerticalDistanceFromText
16496bd5-bb12-11ad-59e6-baf234803471
06/08/2017
medium

Frame.VerticalDistanceFromText property (Word)

Returns or sets the vertical distance (in points) between a frame and the surrounding text. Read/write Single.

Syntax

expression. VerticalDistanceFromText

expression An expression that returns a 'Frame' object.

Example

This example sets the vertical distance between the selected frame and the surrounding text to 12 points.

If Selection.Frames.Count = 1 Then 
 Selection.Frames(1).VerticalDistanceFromText = 12 
End If

This example adds a frame around the selection and sets several properties of the frame.

Set aFrame = ActiveDocument.Frames.Add(Range:=Selection.Range) 
With aFrame 
 .HorizontalDistanceFromText = InchesToPoints(0.13) 
 .VerticalDistanceFromText = InchesToPoints(0.13) 
 .HeightRule = wdFrameAuto 
 .WidthRule = wdFrameAuto 
End With

See also

Frame Object

[!includeSupport and feedback]