Font.Superscript property (Word)
True if the font is formatted as superscript. Read/write Long.
Syntax
expression.Superscript
expression An expression that returns a Font object.
Remarks
Returns True, False, or wdUndefined (a mixture of True and False). Can be set to True, False, or wdToggle.
Setting the Superscript property to True sets the Subscript property to False, and vice versa.
Example
This example inserts text at the beginning of the active document and formats two characters in the fourth word as superscript.
Set myRange = ActiveDocument.Range(Start:=0, End:=0)
myRange.InsertAfter "Superscript in the 4th word."
ActiveDocument.Range(Start:=20, End:=22).Font.Superscript = True
This example formats the selected text as superscript.
If Selection.Type = wdSelectionNormal Then
Selection.Font.Superscript = True
Else
MsgBox "You need to select some text."
End If
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for