View Single Post
 
Old 09-30-2023, 09:25 AM
vivka vivka is offline Windows 7 64bit Office 2016
Expert
 
Join Date: Jul 2023
Posts: 293
vivka is on a distinguished road
Default

I didn't check it, but hopefully it will work properly:

Code:
Sub Macro()

Dim oRng As range
Set oRng = ActiveDocument.StoryRanges(1)
    oRng.Find.ClearFormatting
    With oRng.Find.Font
        .Superscript = True
    End With
    oRng.Find.Replacement.ClearFormatting
    With oRng.Find.Replacement.Font
        .Superscript = False
    End With
     oRng.Find.Execute Replace:=wdReplaceAll
set oRng = Nothing
End Sub
Reply With Quote