Determines whether the specified text is superscript. Read/write MsoTriState.
MsoTriState can be one of these MsoTriState constants. |
msoCTrue |
msoFalse Default. The specified text is not superscript. |
msoTriStateMixed Some characters are superscript and some aren't. |
msoTriStateToggle |
msoTrue The specified text is superscript. |
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 Superscript property to msoTrue automatically sets the BaselineOffset property to 0.3 (30 percent).
Example
This example sets the text for shape two on slide one and then makes the fifth character superscript with a 30-percent offset.
With Application.ActivePresentation.Slides(1).Shapes(2).TextFrame
With .TextRange
.Text = "E=mc2"
.Characters(5, 1).Font.Superscript = msoTrue
End With
End With