Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-16-2022, 11:35 PM
ra_beale ra_beale is offline Convert superscript numbers to auto-footnote markers Mac OS X Convert superscript numbers to auto-footnote markers Office 2016 for Mac
Novice
Convert superscript numbers to auto-footnote markers
 
Join Date: Feb 2022
Posts: 1
ra_beale is on a distinguished road
Default Convert superscript numbers to auto-footnote markers

I'm working on a huge document in which the author, rather than using auto-footnotes, has inserted superscript numbers where he wants footnotes. I need to turn these all into auto-footnotes.



I'm looking for a macro that will essentially do the following:

With a range of text selected (where the range could be the full document):

* find the first superscript number, or run of numbers (some of them go up t o 3 digits)
* replace it with an auto-footnote marker & create the corresponding footnote (it doesn't need to populate it, all that text is in a separate file so I will have to paste it in later)
* repeat until there are no more superscript numbers to be found.

Has anyone come across such a thing, or can see easily how you would script it? I'd be very grateful of recommendations as doing it manually is taking FOREVER - it's a 760-plus page document and there are hundreds and hundreds of markers. Thanks!

PS I'm not sure if it's Office 2016 I'm on but that seemed to be the latest version I could select for Mac - it's version 16.57. I could borrow my daughter's laptop instead if someone has one that runs on another version but not necessarily on Mac.
Reply With Quote
  #2  
Old 02-17-2022, 03:17 PM
macropod's Avatar
macropod macropod is online now Convert superscript numbers to auto-footnote markers Windows 10 Convert superscript numbers to auto-footnote markers Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
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

See, for example: Convert Fixed Notes to Dynamic Footnotes/Endnotes
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 09-04-2022, 09:17 PM
glmcmillan glmcmillan is offline Convert superscript numbers to auto-footnote markers Mac OS X Convert superscript numbers to auto-footnote markers Office 2021
Novice
 
Join Date: Sep 2022
Posts: 3
glmcmillan is on a distinguished road
Default

Should this work on multiple pages? The macro works perfectly for all of the footnotes on the first page, but once it reaches the first footnote on the second page (say note 7), it loops with status "Creating note 7" until all of the remaining content in the body and footnotes have been deleted.
Reply With Quote
  #4  
Old 09-04-2022, 09:19 PM
glmcmillan glmcmillan is offline Convert superscript numbers to auto-footnote markers Mac OS X Convert superscript numbers to auto-footnote markers Office 2021
Novice
 
Join Date: Sep 2022
Posts: 3
glmcmillan is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
Should this work on multiple pages? The macro works perfectly for all of the footnotes on the first page, but once it reaches the first footnote on the second page (say note 7), it loops with status "Creating note 7" until all of the remaining content in the body and footnotes have been deleted.
Reply With Quote
  #5  
Old 09-05-2022, 07:09 AM
macropod's Avatar
macropod macropod is online now Convert superscript numbers to auto-footnote markers Windows 10 Convert superscript numbers to auto-footnote markers Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
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

glmcmillan: Kindly post post questions on the same topic in multiple threads. If you have questions about Greg Maxey's code, contact him though his website.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
footnote, superscript



Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert superscript numbers to auto-footnote markers Footnote reference numbers precede by superscript '(' and follow w/ superscript ')' Swarup Word 4 07-18-2019 05:51 PM
Convert superscript numbers to auto-footnote markers Convert/link superscript numbers to footnotes Apologist Word VBA 2 03-24-2019 02:54 AM
Convert superscript numbers to auto-footnote markers Code to convert numbers to superscript SidCharming Word VBA 2 08-09-2018 08:21 AM
Convert superscript numbers to auto-footnote markers Superscript and subscript numbers both appear as subscripts jhkemp Word 7 02-07-2018 02:41 PM
Convert superscript numbers to auto-footnote markers Find superscript numbers with a prefix of some default text AlexandarR Word 7 05-20-2015 07:57 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:57 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