![]() |
|
#1
|
|||
|
|||
![]()
Perhaps something like this:
Code:
Option Explicit Private m_oFN As Footnote Sub ScratchMacro() For Each m_oFN In ActiveDocument.Footnotes m_oFN.Range.Text = "(Note - " & fcnGetFootnoteReferenceIndex & ") " & m_oFN.Range.Text Next lbl_Exit: Exit Sub End Sub Function fcnGetFootnoteReferenceIndex() As String With m_oFN With .Reference.Characters.First .Collapse .InsertCrossReference wdRefTypeFootnote, wdFootnoteNumberFormatted, m_oFN.Index fcnGetFootnoteReferenceIndex = .Characters.First.Fields(1).Result .Characters.Last.Fields(1).Delete End With End With lbl_Exit: Exit Function End Function |
#2
|
|||
|
|||
![]()
Thanks, Greg - that does the trick!
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Sabya | Word | 6 | 07-29-2018 02:30 PM |
![]() |
cgp1689 | Word | 6 | 10-13-2015 08:24 AM |
Extracting certain text before footnote number | Taisir | Word VBA | 6 | 11-26-2014 12:27 AM |
![]() |
rekent | Word VBA | 2 | 05-13-2014 06:53 AM |
Footnote text is not aligned with the corresponding number | Patrick1988 | Word | 0 | 08-28-2010 09:33 PM |