Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-28-2016, 06:50 AM
Atfon Atfon is offline How can I create a macro to shift the content of all subsequent footnotes up one position? Windows 7 64bit How can I create a macro to shift the content of all subsequent footnotes up one position? Office 2013
Novice
How can I create a macro to shift the content of all subsequent footnotes up one position?
 
Join Date: Mar 2016
Posts: 3
Atfon is on a distinguished road
Default How can I create a macro to shift the content of all subsequent footnotes up one position?

This is the scenario I wish to try to address:



I have a Word document with thousands of footnotes. At one point in the document, a blank footnote was entered. Because of this, all subsequent footnotes are shifted down one position. How can I generate a macro to move the content of all subsequent footnotes up one position, thus replacing the blank footnote with the correct information and moving all subsequent footnotes up as well?

Thank you for your time and suggestions.
Reply With Quote
  #2  
Old 03-28-2016, 02:31 PM
macropod's Avatar
macropod macropod is offline How can I create a macro to shift the content of all subsequent footnotes up one position? Windows 7 64bit How can I create a macro to shift the content of all subsequent footnotes up one position? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

The proper way of doing that is by deleting the offending footnote.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 03-28-2016, 02:40 PM
Atfon Atfon is offline How can I create a macro to shift the content of all subsequent footnotes up one position? Windows 7 64bit How can I create a macro to shift the content of all subsequent footnotes up one position? Office 2013
Novice
How can I create a macro to shift the content of all subsequent footnotes up one position?
 
Join Date: Mar 2016
Posts: 3
Atfon is on a distinguished road
Default

I apologize that my original post was not clear enough here. Let me make a more concrete example.

Footnote 200 is blank
Footnote 201 contains the information that should be in the position of Footnote 200 and so on through the rest of the document. All subsequent footnotes need to be moved up one position.

Simply deleting the blank Footnote 200 will not resolve the issue because the footnote that had been number 201 will be in the wrong position in the document and all subsequent footnotes would remain in the wrong position.

Thanks again!
Reply With Quote
  #4  
Old 03-28-2016, 03:16 PM
macropod's Avatar
macropod macropod is offline How can I create a macro to shift the content of all subsequent footnotes up one position? Windows 7 64bit How can I create a macro to shift the content of all subsequent footnotes up one position? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

In that case, try:
Code:
Sub TransferFootNotes()
Application.ScreenUpdating = False
Dim i As Long, Rng As Range
With ActiveDocument
  For i = 201 To .Footnotes.Count
    Set Rng = .Footnotes(i).Range
    .Footnotes(i - 1).Range.FormattedText = Rng.FormattedText
  Next
  .Footnotes(.Footnotes.Count).Delete
End With
Application.ScreenUpdating = True
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 03-29-2016, 05:51 AM
Atfon Atfon is offline How can I create a macro to shift the content of all subsequent footnotes up one position? Windows 7 64bit How can I create a macro to shift the content of all subsequent footnotes up one position? Office 2013
Novice
How can I create a macro to shift the content of all subsequent footnotes up one position?
 
Join Date: Mar 2016
Posts: 3
Atfon is on a distinguished road
Default

Brilliant! Thank you, Paul. Turning off Screen Updating really speeds things up.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I create a macro to shift the content of all subsequent footnotes up one position? Create footnotes from table... ¿AUTOMATICALLY? jbaranao Word 3 02-08-2015 08:57 PM
How can I create a macro to shift the content of all subsequent footnotes up one position? I want to create footnotes without numbers j hewitt Word 1 01-05-2015 10:26 AM
How can I create a macro to shift the content of all subsequent footnotes up one position? macro for change content of cell2 when content of cell1 changes Intruder Excel Programming 1 11-17-2012 08:24 PM
How can I create a macro to shift the content of all subsequent footnotes up one position? create footnotes from custom text mosrozen Word VBA 2 06-14-2012 06:59 AM
How can I create a macro to shift the content of all subsequent footnotes up one position? create letter template with fixed position fields and follow up pages Lynn O'Shea Word 3 05-18-2010 12:32 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:47 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft