Superscript Spaces

G

Gerald Perna

I need code that will "normalize" all superscript spaces
that occur before letters in a document, but not digits
just letters.

Does anyone have an idea?

Thanks.

Jerry
 
W

Word Heretic

G'day "Gerald Perna" <[email protected]>,

set a range object to use the doc content

Dim MyRange as Range


Now do a search. Init with

MyRange.Find.Font.Superscript=true

and

MatchWildcards=True

etc

and when exec with wdreplacenone test what comes after the MyRange

Like

Set TestRange=MyRange.Duplicate
TestRange.Collapse wdcollapseend
TestRange.movestart wdcharacter,-1
if testrange.="A" and testrange<"=Z" or ...




Gerald Perna said:
I need code that will "normalize" all superscript spaces
that occur before letters in a document, but not digits
just letters.

Does anyone have an idea?

Thanks.

Jerry

Steve Hudson

Word Heretic, Sydney, Australia
Tricky stuff with Word or words for you.
wordheretic.com

Replies offlist may require payment.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top