search and replace with super/subscript

S

slideTFN

I need to create a Word macro to replace the characters ú, Æ and ¿
with fractions 1/4, 1/2 and 3/4. The numerator and the "/" need to be
superscript, and the denominators need to be subscripts.

I found a great 2-year-old tip from a guy named Jerry Stratton here on
how to do something like this. Excellent advice. So I recorded a macro
that got the desired result.

However, when I try to run the macro and duplicate that result, I get a
runtime error message: "'run-time error 5843' One of the values passed
to this method or property is out of range."

Any suggestions?

I'll add a lament here for the demise of WordPerfect for the Mac a
decade ago. Creating and editing macros like this in that program was a
snap. I still use WordPerfect for the Mac but am trying to get away
from Classic apps, and I think I see compatibility problems starting to
creep in since moving to Tiger for the OS.
 
S

slideTFN

Another good suggestion, but I must clarify. I don't need to create
fractions as I type. I need to do this replacement in text which has
been cut-and-pasted or imported from a text file into Word.

In short, I need the macro I described initially and which I have
recorded to work. Will it work, or is there an unavoidable glitch in
Word's macro capacity that makes this impossible?

Any suggestions?

Many thanks.
 
D

Daiya Mitchell

I don't know--but often the macro recorder records a lot of excess stuff.
You might try just deleting the problematic lines, especially since you said
you didn't want to specify things like font size anyhow.
 
S

slideTFN

Thank you. I tried this. Now the macro runs, but the superscript and
subscript formatting is gone. I really do appreciate the suggestions.

SL
 

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