Share via


Font.Grow Method

Word Developer Reference

Increases the font size to the next available size.

Syntax

expression.Grow

expression   Required. A variable that represents a Font object.

Remarks

If the selection or range contains more than one font size, each size is increased to the next available setting.

Example

This example increases the font size of the fourth word in a new document.

Visual Basic for Applications
  Dim rngTemp As Range

Set rngTemp = Documents.Add.Content rngTemp.InsertAfter "This is a test of the Grow method." MsgBox "Click OK to increase the font size of the fourth word." rngTemp.Words(4).Font.Grow

This example increases the font size of the selected text.

Visual Basic for Applications
  If Selection.Type = wdSelectionNormal Then 
    Selection.Font.Grow
Else
    MsgBox "You need to select some text."
End If

See Also