![]() |
|
![]() |
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
![]() 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 |
#2
|
|||
|
|||
![]() Quote:
This is indeed a fantastic solution gmayor! And it is also executed in no time. Thank you a lot! |
#3
|
|||
|
|||
![]()
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?
|
![]() |
Tags |
footnotes |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Make macro available to all PPT presentations | djlee | PowerPoint | 2 | 02-11-2015 12:52 PM |
![]() |
ddaniels | Word VBA | 1 | 01-13-2015 05:36 PM |
![]() |
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 |
![]() |
hanvyj | Excel Programming | 4 | 12-14-2012 03:23 AM |