Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-09-2022, 05:24 AM
TheBigBoss TheBigBoss is offline Macro to change font size of Footnote Reference in Footnote Text Windows 7 32bit Macro to change font size of Footnote Reference in Footnote Text Office 2010 32bit
Advanced Beginner
Macro to change font size of Footnote Reference in Footnote Text
 
Join Date: Dec 2016
Posts: 56
TheBigBoss is on a distinguished road
Red face 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
Reply With Quote
  #2  
Old 06-09-2022, 06:01 AM
macropod's Avatar
macropod macropod is offline Macro to change font size of Footnote Reference in Footnote Text Windows 10 Macro to change font size of Footnote Reference in Footnote Text Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
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

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]
Reply With Quote
  #3  
Old 06-09-2022, 06:13 AM
TheBigBoss TheBigBoss is offline Macro to change font size of Footnote Reference in Footnote Text Windows 7 32bit Macro to change font size of Footnote Reference in Footnote Text Office 2010 32bit
Advanced Beginner
Macro to change font size of Footnote Reference in Footnote Text
 
Join Date: Dec 2016
Posts: 56
TheBigBoss is on a distinguished road
Default

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
Reply With Quote
  #4  
Old 06-09-2022, 07:01 AM
macropod's Avatar
macropod macropod is offline Macro to change font size of Footnote Reference in Footnote Text Windows 10 Macro to change font size of Footnote Reference in Footnote Text Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
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 TheBigBoss View Post
"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.
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]
Reply With Quote
  #5  
Old 06-09-2022, 08:20 AM
TheBigBoss TheBigBoss is offline Macro to change font size of Footnote Reference in Footnote Text Windows 7 32bit Macro to change font size of Footnote Reference in Footnote Text Office 2010 32bit
Advanced Beginner
Macro to change font size of Footnote Reference in Footnote Text
 
Join Date: Dec 2016
Posts: 56
TheBigBoss is on a distinguished road
Default

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
Reply With Quote
  #6  
Old 06-10-2022, 06:14 AM
macropod's Avatar
macropod macropod is offline Macro to change font size of Footnote Reference in Footnote Text Windows 10 Macro to change font size of Footnote Reference in Footnote Text Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
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 TheBigBoss View Post
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).
Which is precisely the situation where a change in the Style definition is all you need...
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to change font size of Footnote Reference in Footnote Text 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
Macro to change font size of Footnote Reference in Footnote Text Adding footnote number as part of footnote text NoCalScribe Word VBA 3 07-15-2019 07:20 PM
Macro to change font size of Footnote Reference in Footnote Text Space between footnote number and footnote text Sabya Word 6 07-29-2018 02:30 PM
Macro to change font size of Footnote Reference in Footnote Text How to change the font of footnote numbering? mudum Word 2 12-03-2015 06:27 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:25 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft