![]() |
|
|
Thread Tools | Display Modes |
#2
|
|||
|
|||
![]()
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 |
Tags |
replace, superscript |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Ramses505 | Word VBA | 6 | 09-21-2023 12:10 AM |
![]() |
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 |
![]() |
Cobb78 | Word | 5 | 07-11-2016 06:23 AM |
![]() |
kcbenson | Word | 2 | 10-16-2014 01:31 PM |