Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-23-2019, 12:20 AM
KimJongUndo KimJongUndo is offline How to change superscript footnotes into genuine Word footnotes Mac OS X How to change superscript footnotes into genuine Word footnotes Office 2019
Novice
 
Join Date: Sep 2019
Posts: 4
KimJongUndo is on a distinguished road
Default Type 13 error


A key feature of this macro is that it only requires you to select the actual text of the footnote. At first blush, I thought it was necessary to include the body of the text in which the footnotes occur BUT that is not the case. I too was getting a type 13 error but I figured out it was because I was misunderstanding how convenient the macro is.

In the example document:
If you select the following text (which you might do if you thought the macro required the text of the footnote to be selected along with the footnote):
"This is a sentence."1 This is a sentence. This is a sentence.2
This is a new paragraph. This is a sentence.3 This is a sentence.4 This is a sentence.
1 This is a footnote.
2 This is a footnote.
3 This is a footnote.
4 This is a footnote.


You will get a type 13 error every time.

That's because the macro actually uses the fact that the text of the footnote always begins with a number. But body text doesn't follow that convention.
So the correct selection is:
“This is a sentence.”1 This is a sentence. This is a sentence.2
This is a new paragraph. This is a sentence.3 This is a sentence.4 This is a sentence.
1 This is a footnote.
2 This is a footnote.
3 This is a footnote.
4 This is a footnote.


This is a well-written and simple macro.
Reply With Quote
  #2  
Old 09-23-2019, 12:42 AM
KimJongUndo KimJongUndo is offline How to change superscript footnotes into genuine Word footnotes Mac OS X How to change superscript footnotes into genuine Word footnotes Office 2019
Novice
 
Join Date: Sep 2019
Posts: 4
KimJongUndo is on a distinguished road
Default Potential Other Error & Solution

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. Yet, I was staring at what looked like superscript on my screen. It was only through closer inspection of the font dialog box that I realized this wasn't word doing something completely idiosyncratic. And thankfully there's a solution.

The solution: advanced find & replace. Replacing raised text with the same text but not-raised and superscripted instead took care of the problem in short order. The find text will find any number and the replace text will replace it with itself. So the footnote number will be unharmed. The only difference is exactly what we want the formatting of those numbers to be.
Find: ([0-9]{1,})
Replace: \1
Advanced formatting described below:
IT IS CRUCIAL that "use wildcards" is checked, and that you go into the font formatting dialog for find (accomplish this by clicking into the find field and then altering the formatting stuff at the bottom of the advanced find & replace dialog box). In the font formatting, under the "advanced" tab, change the "Position" field from "normal" to "raised". You also have to enter a value for the amount the text is raised. This was not something my pdf converter had been consistent about but I found that most of my footnotes had been raised 3.5, 4, and 4.5 pts. I fully expect that I will have to run this find & replace a few more times when the macro breaks again because the footnotes were raised by some other amount—at least I now know where to look for that number!

It is also crucial that the replace text have the position "normal" and the superscript box checked (under the font tab within font formatting). In my case, the footnote text had not only been raised instead of superscripted but it was hilarious font sizes such as 5 pt instead of the size of the body text (11pt) so I made that change in the replace font formatting as well.
Reply With Quote
  #3  
Old 09-23-2019, 03:28 PM
macropod's Avatar
macropod macropod is offline How to change superscript footnotes into genuine Word footnotes Windows 7 64bit How to change superscript footnotes into genuine Word footnotes 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
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change superscript footnotes into genuine Word footnotes Word footnotes and track changes problem Carnegie Word 14 03-13-2017 01:31 AM
Convert manual cross references in footnotes to other footnotes to automatic cross references ghumdinger Word VBA 7 11-20-2014 11:47 PM
How to change superscript footnotes into genuine Word footnotes word 2007 - footnotes and text box glggluig Word 1 08-10-2014 04:09 AM
How to change superscript footnotes into genuine Word footnotes Corrupted footnotes in Word mythander889 Word 12 09-11-2012 03:58 PM
How to change superscript footnotes into genuine Word footnotes Can Word automatically update footnotes? gib65 Word 2 08-15-2011 01:46 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:42 AM.


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