View Single Post
 
Old 09-23-2019, 03:28 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by KimJongUndo View Post
I ran into an error that I had not seen before:

"Run-time error: '5941'

The document I'm working with had been converted from pdf to word and somehow, along the way (I presume it wasn't a conscious decision), what should have been superscripted characters (such as footnotes) where in fact actually only raised.

My jaw hit the floor as I realized the macro wouldn't work because, despite having upwards of 850 footnotes, the document did not contain a single superscript.
The difference between superscript and raised characters would be pretty obvious though. And your Find/Replace 'fix' is more complicated than it need be. Try:
Find = ^#
with the find font set to the appropriate raised value, and
Replace = ^&
with the replacement font set to superscript and normal (not raised). Wildcards not needed.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote