#1
|
|||
|
|||
Macro to change font size of Footnote Reference in Footnote Text
Hi there,
I am facing a small issue here. Font size of the "Footnote Reference" is the same than font size of text when inserting a footnote. In the footnote itself, the "Footnote Text" is of font size 9pt in my template. So when I insert a footnote, the "Footnote Reference" in the footnote is also 9pt. However, I need it to be 10 pt. So I need a macro that can change font size of "Footnote Reference" in the footnotes to 10 pt (and leave the Footnote Text to 10pt). I know the way forward would be to parse the footnotes one by one, select the "Footnote Reference" part and change font size... but I am stuck Thanks |
#2
|
||||
|
||||
Your description suggests someone has messed with the footnote reference formatting in both the document body and the footnotes (e.g. by selecting content and pressing Ctrl-Space). That can easily be remedied via Find/Replace, where:
Find = ^f Replace = ^& and the replacement Style is set to 'Footnote Reference'. I should also point out that the 'Footnote Reference' font size is the same as the underlying font by default - the only difference being that the reference is superscripted. You also don't need a macro to change the size of the footnote text - simply change the font size of the "Footnote Text" Style.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Thanks Macropod for your reply
"I should also point out that the 'Footnote Reference' font size is the same as the underlying font by default - the only difference being that the reference is superscripted." - Indeed. "Footnote Text" is of font size 9pt. Therefore, the "Footnote Reference" in the footnote will be 9pt superscript. However, I need it to be 10pt superscript and "Footnote Text" to remain 9pt. I shall try to code something tonight and revert back. Thanks |
#4
|
||||
|
||||
If you try to do that by modifying the "Footnote Reference" Style, you'll end up with 9pt superscript in the document body as well.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
Exactly.
Font size in body is 10pt so footnote reference is 10pt superscript in body (which is fine) Footnote text is 9pt so footnote reference in footnote is 9pt superscript, but I need it to be 10pt superscript (therefore not following the standard rules). I can't change styles, so a manual change is required which I want to automate. I will code tonight but I wonder I better use a regex or is an easier way to get to the "Footnote Reference" (is it a field, a bookmark, a style, ?) a) parse footnotes one by one; b) range/select the "Footnote Reference" OR regex on footnote paragraph text ? c) change font size to 10pt superscript Cheers |
#6
|
||||
|
||||
Which is precisely the situation where a change in the Style definition is all you need...
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Removing line break and indentation between footnote number and footnote text in Word | jaanross | Word | 5 | 02-06-2020 12:04 AM |
VBA - change font and font size for Word footnote | thomasoj | Word VBA | 1 | 01-15-2020 02:37 AM |
Adding footnote number as part of footnote text | NoCalScribe | Word VBA | 3 | 07-15-2019 07:20 PM |
Space between footnote number and footnote text | Sabya | Word | 6 | 07-29-2018 02:30 PM |
How to change the font of footnote numbering? | mudum | Word | 2 | 12-03-2015 06:27 AM |