Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-07-2017, 02:29 AM
gmayor's Avatar
gmayor gmayor is offline Footnote extraction macro [Why is this macro so slow? /  anyway to make it faster?] Windows 10 Footnote extraction macro [Why is this macro so slow? /  anyway to make it faster?] Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,142
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default


You are overthinking this. Try the following

Code:
Sub footnoteCharacters()
'Graham Mayor - http://www.gmayor.com - Last updated - 07 Jun 2017 
Dim oFNote As Footnote
Dim oRng As Range
Dim i As Integer, j As Integer
    For i = ActiveDocument.Footnotes.Count To 1 Step -1
        Set oFNote = ActiveDocument.Footnotes(i)
        Set oRng = oFNote.Reference.Characters.Last
        oRng.Text = " £$%" & oFNote.Range.Text & "%$£"
        DoEvents
    Next i
lbl_Exit:
    Set oFNote = Nothing
    Set oRng = Nothing
    Exit Sub
End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
  #2  
Old 06-07-2017, 03:58 AM
Le_Blanc Le_Blanc is offline Footnote extraction macro [Why is this macro so slow? /  anyway to make it faster?] Windows 7 64bit Footnote extraction macro [Why is this macro so slow? /  anyway to make it faster?] Office 2010 64bit
Novice
Footnote extraction macro [Why is this macro so slow? /  anyway to make it faster?]
 
Join Date: Jun 2017
Posts: 2
Le_Blanc is on a distinguished road
Default

Quote:
You are overthinking this
If I got a dollar for each time I heard this in my life haha...

This is indeed a fantastic solution gmayor! And it is also executed in no time. Thank you a lot!
Reply With Quote
  #3  
Old 06-13-2020, 11:55 AM
RiSta RiSta is offline Footnote extraction macro [Why is this macro so slow? /  anyway to make it faster?] Windows 10 Footnote extraction macro [Why is this macro so slow? /  anyway to make it faster?] Office 2019
Novice
 
Join Date: Jun 2020
Posts: 7
RiSta is on a distinguished road
Default

Thanks for macro. Is it possible that macro returns text not in superscript format, but it should preserve formating style of footnote for example keep italic or bold?
Reply With Quote
Reply

Tags
footnotes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Make macro available to all PPT presentations djlee PowerPoint 2 02-11-2015 12:52 PM
Footnote extraction macro [Why is this macro so slow? /  anyway to make it faster?] Help make Macro Please ddaniels Word VBA 1 01-13-2015 05:36 PM
Footnote extraction macro [Why is this macro so slow? /  anyway to make it faster?] VBA code for Microsoft Word macro — select text and insert footnote ndnd Word VBA 10 01-06-2015 01:47 PM
Macro to find text only footnote numbers TimFromPhx Word VBA 7 04-10-2014 07:05 PM
Footnote extraction macro [Why is this macro so slow? /  anyway to make it faster?] How to make an add-in/global macro hanvyj Excel Programming 4 12-14-2012 03:23 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:33 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