Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-20-2023, 09:47 PM
Guessed's Avatar
Guessed Guessed is offline Loop through Footnote Reference Marks Windows 10 Loop through Footnote Reference Marks Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,185
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

If you want to only address the footnote number in the footnote itself you can do it with this code. I recommend you apply the same character style that was applied to the footnote reference in the body of the document.
Code:
Sub FootnoteMark2()
  Dim aFN As Footnote
  For Each aFN In ActiveDocument.Footnotes
'    With aFN.Range.Paragraphs(1).Range.Words(1).Font  'enable this for direct formatting
'      .Superscript = True
'      .Position = 0
'    End With
    aFN.Range.Paragraphs(1).Range.Words(1).Style = "Footnote Reference"  'preferred method is to use a style
  Next aFN
End Sub

__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #2  
Old 09-21-2023, 12:10 AM
RobiNew RobiNew is offline Loop through Footnote Reference Marks Windows 10 Loop through Footnote Reference Marks Office 2016
Competent Performer
 
Join Date: Sep 2023
Posts: 231
RobiNew is on a distinguished road
Default

Many thanks Guessed! That was a real improvement.
I wonder if you could have a look at my question here:
https://www.msofficeforums.com/word-...tml#post177026
Thanks a lot, anyway!
Reply With Quote
Reply

Tags
ref mark ftnt sec



Similar Threads
Thread Thread Starter Forum Replies Last Post
Loop through Footnote Reference Marks Removing line break and indentation between footnote number and footnote text in Word jaanross Word 5 02-06-2020 12:04 AM
Loop through Footnote Reference Marks Footnote reference numbers precede by superscript '(' and follow w/ superscript ')' Swarup Word 4 07-18-2019 05:51 PM
Loop through Footnote Reference Marks How do I fix this unknown problem? Right-angle marks in corners - crop marks Quillo1234 Word 2 07-20-2016 02:24 AM
Loop through Footnote Reference Marks How to keep the footnote(endnote) reference numbers when pasting text between two documents? gn4619 Word 4 10-22-2015 08:01 AM
Get footnote reference GLENCOE Word VBA 1 04-07-2015 04:08 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:13 PM.


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