Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 09-30-2023, 08:00 AM
vivka vivka is offline Change superscripts to regular text except footnote marks without using 'Selection.' Windows 7 64bit Change superscripts to regular text except footnote marks without using 'Selection.' Office 2016
Expert
 
Join Date: Jul 2023
Posts: 293
vivka is on a distinguished road
Default

Hi, RobiNew! Just replace selection with ActiveDocument.range:
Code:
Sub Macro()

Dim oRng As range
Set oRng = ActiveDocument.range
    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
End Sub
Note that this is the fastest replacement.
Reply With Quote
 

Tags
replace, superscript



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change superscripts to regular text except footnote marks without using 'Selection.' Loop through Footnote Reference Marks Ramses505 Word VBA 6 09-21-2023 12:10 AM
Change superscripts to regular text except footnote marks without using 'Selection.' Macro to change font size of Footnote Reference in Footnote Text TheBigBoss Word VBA 5 06-10-2022 06:14 AM
Need to change superscripts to regular text but also add parentheses DCabby Word VBA 4 11-13-2019 09:43 AM
Change superscripts to regular text except footnote marks without using 'Selection.' Convert endnote/footnote to regular text Cobb78 Word 5 07-11-2016 06:23 AM
Change superscripts to regular text except footnote marks without using 'Selection.' Regular (roman) character style doesn't change text to roman kcbenson Word 2 10-16-2014 01:31 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:26 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft