![]() |
#16
|
|||
|
|||
![]()
Hi macropod! I didn't do anything stupid on activating your macro. The only stupid thing I did was to think that an expert could easily modify my bit of code. But perhaps the idea was not so stupid after all, because Vivka has now done what I expected from an expert. Here below is my simple macro with Vivka's modifications. It works perfectly in both areas. All the best!
Sub AddSuperscriptLetterToFootnotes() Dim ftNote As Footnote Dim supLetter As String Dim i As Integer supLetter = "a" 'Loop through all footnotes For i = 1 To ActiveDocument.Footnotes.Count Set ftNote = ActiveDocument.Footnotes(i) 'Main Document Reference With ftNote.Reference .InsertAfter supLetter .Characters(.Characters.Count).Font.Superscript = True End With 'Footnote Text Area With ftNote.Range .Characters.First.Previous = supLetter & Chr(32) .Characters.First.Font.Superscript = True End With Next i MsgBox "Superscript letters added to footnote references.", vbInformation |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Word Macro to Find a phrase followed by a number and a lower case letter, capitalizing the letter | rekent | Word VBA | 2 | 01-14-2025 01:45 PM |
Using text frames in the Footnote area | RRB | Word | 9 | 12-07-2023 02:30 AM |
![]() |
TheBigBoss | Word VBA | 5 | 06-10-2022 06:14 AM |
![]() |
jaanross | Word | 5 | 02-06-2020 12:04 AM |
![]() |
NoCalScribe | Word VBA | 3 | 07-15-2019 07:20 PM |