Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-03-2021, 02:26 AM
yacov yacov is offline superscript to style Windows 10 superscript to style Office 2016
Competent Performer
superscript to style
 
Join Date: Oct 2019
Posts: 146
yacov is on a distinguished road
Default superscript to style

Hi.
I have a long document with several thousand of superscript text.
All other text is associated with style. (the superscript is in direct formating).
I would like to associate the entire superscript to a new style to make it more convenient to select, resize text or delete. How can this be done?

I did the superscript with the macro:
Sub Find_and_Superscript()
'
' Macro recorded by Bird_FAT and modified later
' This macro uses the wildcard '*' to look for text
' between to underscores, then italicises the text.


' The While/Wend statement at the end causes it to
' loop until it reaches the end of the document.
'
Selection.Find.ClearFormatting
With Selection.Find
.Text = ";*;"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchAllWordForms = False
.MatchSoundsLike = False
.MatchWildcards = True
End With
While Selection.Find.Execute
Selection.Font.Superscript = True
Wend
End Sub
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
superscript to style Char style and footnotes reference style superscript - applying character style removes superscript RRB Word 2 06-02-2021 02:54 PM
superscript to style Footnote reference numbers precede by superscript '(' and follow w/ superscript ')' Swarup Word 4 07-18-2019 05:51 PM
superscript to style How to use subscript and superscript in fractions? kingston123 Word 7 09-23-2018 11:05 PM
Footnotes/Citations not superscript wordquery Word 3 04-12-2017 01:55 PM
excel update superscript by 1 htownpaper Word 8 12-08-2014 06:38 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:53 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