![]() |
|
#13
|
||||
|
||||
|
Ho hum:
Code:
Sub InsertFootnote() Dim Rng As Range: Set Rng = Selection.Range Application.Dialogs(wdDialogInsertFootnote).Execute Rng.End = Rng.End + 1: Rng.InsertAfter "a": Rng.Style = wdStyleFootnoteReference Selection.Start = Selection.Start - 1 Set Rng = Selection.Range: Rng.Collapse wdCollapseStart Rng.Start = Rng.Start - 1: Rng.InsertAfter "a": Rng.Style = wdStyleFootnoteReference Selection.Collapse wdCollapseEnd If ActiveWindow.ActivePane.View.Type = wdPrintView Or ActiveWindow. _ ActivePane.View.Type = wdWebView Or ActiveWindow.ActivePane.View.Type = wdPrintPreview Then ActiveWindow.View.SeekView = wdSeekFootnotes Else ActiveWindow.View.SplitSpecial = wdPaneFootnotes End If End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
|
Similar Threads
|
||||
| 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 |
Macro to change font size of Footnote Reference in Footnote Text
|
TheBigBoss | Word VBA | 5 | 06-10-2022 06:14 AM |
Removing line break and indentation between footnote number and footnote text in Word
|
jaanross | Word | 5 | 02-06-2020 12:04 AM |
Adding footnote number as part of footnote text
|
NoCalScribe | Word VBA | 3 | 07-15-2019 07:20 PM |