Skip to content

Latest commit

 

History

History
63 lines (37 loc) · 1.38 KB

Word.Font.Superscript.md

File metadata and controls

63 lines (37 loc) · 1.38 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Font.Superscript property (Word)
vbawd10.chm156369035
vbawd10.chm156369035
Word.Font.Superscript
07a1f270-263e-00af-ed8f-3b9d2904e78b
06/08/2017
medium

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

Font Object

[!includeSupport and feedback]