Table of contents
TOC
Collapse the table of content
Expand the table of content

Font.Subscript Property (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Determines whether the specified text is subscript. Read/write.

Syntax

expression. Subscript

expression A variable that represents a Font object.

Return Value

MsoTriState

Remarks

Setting the BaselineOffset property to a negative value automatically sets the Subscript property to msoTrue and the Superscript property to msoFalse.

Setting the BaselineOffset property to a positive value automatically sets the Subscript property to msoFalse and the Superscript property to msoTrue.

Setting the Subscript property to msoTrue automatically sets the BaselineOffset property to ? 0.25 ( ? 25 percent).

The value of the Subscript property can be one of these MsoTriState constants.

ConstantDescription
msoFalseThe specified text is not subscript. The default.
msoTriStateMixedSome characters are subscript and some aren't.
msoTrueThe specified text is subscript.

Example

This example enlarges the first character in the title on slide one if that character is subscript.

With Application.ActivePresentation.Slides(1) _
        .Shapes.Title.TextFrame.TextRange
    With .Characters(1, 1).Font
        If .Subscript Then
            scaleChar = -20 * .BaselineOffset
            .Size = .Size * scaleChar
        End If
    End With
End With

See also

Concepts

Font Object

© 2018 Microsoft