![]() |
|
#1
|
|||
|
|||
![]() 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. |
#2
|
|||
|
|||
![]()
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,})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. |
#3
|
||||
|
||||
![]() Quote:
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] |
![]() |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
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 |
![]() |
glggluig | Word | 1 | 08-10-2014 04:09 AM |
![]() |
mythander889 | Word | 12 | 09-11-2012 03:58 PM |
![]() |
gib65 | Word | 2 | 08-15-2011 01:46 PM |