#1
|
|||
|
|||
Linking Endnotes with Callouts (Fixed to Dynamic Endnote Numbering)
Greetings!
I have Word files that contain unlinked endnotes that I would like to link. At one time, they were linked and I would like to restore that so, as new text and notes are added, the existing notes and callouts will automatically renumber. Here are the key facts: * The callout numbers are superscripts, as are the beginnings of the corresponding notes. * Superscripts are used exclusively for notes numbers/callouts, so there wouldn't be a conflict with using superscript format as an identifier. * There are no brackets, parentheses, etc. around the numbers. * Endnotes are not currently in a separate section, but I can easily change that. I have consulted Greg Maxey's website (http://gregmaxey.com/word_tip_pages/...footnotes.html) and some other forums, but I'm still running into trouble and can't figure out how to customize the code. I've attached a sample here, in case anyone has the time to take a look. I'd be most appreciative. One of these files has 982+ notes that I'm not keen to renumber manually, but I think I've run out of trial-and-error juice. Many thanks, ~Christina |
#2
|
||||
|
||||
You don't need to modify the code. All you need do is some basic preparation, then run the macro and input the appropriate responses to the prompts.
The basic preparation consists of two wildcard Find/Replace operations, where: Find = (^13[0-9]{1,})([A-Za-z]) Replace = \1 \2 Find = [0-9]{1,} Replace = [^&] with the second Find expression set for superscript. In response to the prompts, input: 2 [#] [#] and click 'Yes' When processing concludes, you can either convert the endnotes to footnotes or reset their numbering format (endnotes default to roman numerals).
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Dear macropod,
Thank you for the helpful prep tips. (I had a "duh" moment when I read that.) It's still not running properly, though. When I run the macro, it gets stuck at the the first endnote text line. It pushes the text (after the [1]) to a new line and I see "Creating Note: 1" at the bottom of the window, but then it makes an error noise and Word freezes. What am I missing? ~Christina |
#4
|
||||
|
||||
Hi Christina,
The process I described works fine with the document you attached. Is the document you're trying to process different?
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
Hi Again,
Thanks for bearing with me. I've been trying with the same document (and even pulled it down from here again to make sure). Every time I run the macro and answer the questions (with [#] as the answer for the second and third questions) but then Word freezes as soon as the macro begins. Is it possible that there's a conflict with another global template? These files use an additional global template; removing it from the document hasn't made a difference that I can tell. I've also re-attached my document here in case I didn't prep it quite right. (This is what I'm hoping because that would be an easy fix.) I can also try this on a Windows OS next week and see if that makes a difference. Thanks again, ~Christina |
#6
|
||||
|
||||
I've just re-run the macro on your latest attachment, using the responses from my previous post and no other changes, and everything worked fine. It Even works fine if I tell it to use '1' as the first option instead of '2'. All I can conclude at this stage is that the problems you're having are a Mac thing; numerous VBA things that work on PCs don't work or work differently on Macs.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#7
|
|||
|
|||
Dear Paul,
I'm writing to follow up with good news! It was a "Mac thing." I've had success running this script on the files on a PC. Mark this as SOLVED. Thank you so much for your patience and expertise. Many thanks again, ~Christina |
Tags |
auto numbering, endnotes, linking |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Repair two interspersed endnote numbering schemes? | gidmeister | Word VBA | 6 | 12-15-2016 07:35 PM |
bug in endnotes numbering | tutu design | Word | 1 | 06-24-2014 04:39 PM |
Non-consecutive endnote numbering? | New Daddy | Word | 2 | 12-03-2013 09:13 AM |
Convert - EndNote to Word's endnotes | Boatwrenchv8 | Word | 3 | 05-17-2012 04:56 PM |
Dynamic linking of text? | mn1247 | Word | 1 | 10-08-2011 03:14 AM |