![]() |
#1
|
||||
|
||||
![]()
Hi, Dear Friends!
I asked ChatGPT to write a macro that inserts a footnote and then places square brackets around the FN reference in the main text area, formatting the whole string as superscript. It gave me this: Quote:
Can we outdo him? Thank you, and have a good day! Susan Flamingo Last edited by RRB; 08-10-2025 at 01:24 AM. Reason: typos |
#2
|
||||
|
||||
![]()
You could use a macro like the following:
Code:
Sub InsertFootnote() Dim Rng As Range: Set Rng = Selection.Range Application.Dialogs(wdDialogInsertFootnote).Execute Rng.End = Rng.End + 1: Rng.InsertBefore "[": Rng.InsertAfter "]": Rng.Style = wdStyleFootnoteReference Selection.Start = Selection.Start - 1 Set Rng = Selection.Range: Rng.Collapse wdCollapseStart Rng.Start = Rng.Start - 1: Rng.InsertBefore "[": Rng.InsertAfter "]": 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] |
#3
|
||||
|
||||
![]()
I guess we still need some real intelligence from real people
![]() ![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Shelley Lou | Word VBA | 4 | 01-07-2025 01:13 PM |
Subscript and bold number between square brackets and remove square brackets | nonno | Word | 0 | 02-10-2024 08:23 AM |
Find and delet all text within brackets and the brackets themselves | ranjan | Word VBA | 2 | 07-22-2021 01:06 AM |
![]() |
wrdy | Word | 2 | 08-03-2017 06:55 PM |
Convert manual cross references in footnotes to other footnotes to automatic cross references | ghumdinger | Word VBA | 7 | 11-20-2014 11:47 PM |