![]() |
|
|||||||
|
|
|
Thread Tools | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Quote:
|
|
#2
|
||||
|
||||
|
Kindly don't ask the same question in multiple threads. Doing so merely wastes people's time - as it has done in this case with answers being provided in both threads.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
#3
|
|||
|
|||
|
Hello
Facing one problem with this macro - in some cases, after moving a footnote to a new position, footnote text accepts destination formatting. It happens when footnote text contains few lines devided by paragraph mark. Is it possible to modify macro so that is preserves footnotes original format. Code:
Sub MoveFootNotes()
Application.ScreenUpdating = False
Dim RngSrc As Range, RngTgt As Range, f As Long
With ActiveDocument
For f = .Footnotes.Count To 1 Step -1
With .Footnotes(f)
Set RngSrc = .Range
Set RngTgt = .Reference
RngSrc.End = RngSrc.End
With RngTgt
.Collapse wdCollapseStart
.FormattedText = RngSrc.FormattedText
.InsertBefore " ###"
.Collapse wdCollapseEnd
.InsertAfter "###"
.Font.Reset
End With
.Delete
End With
Next
End With
Set RngSrc = Nothing: Set RngTgt = Nothing
Application.ScreenUpdating = True
End Sub
Last edited by macropod; 03-22-2021 at 01:56 PM. Reason: Added code tags |
|
| Tags |
| footnotes |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Make macro available to all PPT presentations | djlee | PowerPoint | 2 | 02-11-2015 12:52 PM |
Help make Macro Please
|
ddaniels | Word VBA | 1 | 01-13-2015 05:36 PM |
VBA code for Microsoft Word macro — select text and insert footnote
|
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 |
How to make an add-in/global macro
|
hanvyj | Excel Programming | 4 | 12-14-2012 03:23 AM |