Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-22-2014, 06:24 PM
CDV2003 CDV2003 is offline Linking Endnotes with Callouts (Fixed to Dynamic Endnote Numbering) Mac OS X Linking Endnotes with Callouts (Fixed to Dynamic Endnote Numbering) Office for Mac 2011
Novice
Linking Endnotes with Callouts (Fixed to Dynamic Endnote Numbering)
 
Join Date: Aug 2014
Location: NYC Metro
Posts: 4
CDV2003 is on a distinguished road
Default 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
Attached Files
File Type: doc VBA_Sample.doc (105.5 KB, 13 views)
Reply With Quote
  #2  
Old 08-23-2014, 03:42 AM
macropod's Avatar
macropod macropod is offline Linking Endnotes with Callouts (Fixed to Dynamic Endnote Numbering) Windows 7 64bit Linking Endnotes with Callouts (Fixed to Dynamic Endnote Numbering) Office 2010 32bit
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

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]
Reply With Quote
  #3  
Old 08-23-2014, 07:26 AM
CDV2003 CDV2003 is offline Linking Endnotes with Callouts (Fixed to Dynamic Endnote Numbering) Mac OS X Linking Endnotes with Callouts (Fixed to Dynamic Endnote Numbering) Office for Mac 2011
Novice
Linking Endnotes with Callouts (Fixed to Dynamic Endnote Numbering)
 
Join Date: Aug 2014
Location: NYC Metro
Posts: 4
CDV2003 is on a distinguished road
Default

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
Reply With Quote
  #4  
Old 08-23-2014, 09:11 PM
macropod's Avatar
macropod macropod is offline Linking Endnotes with Callouts (Fixed to Dynamic Endnote Numbering) Windows 7 64bit Linking Endnotes with Callouts (Fixed to Dynamic Endnote Numbering) Office 2010 32bit
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

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]
Reply With Quote
  #5  
Old 08-23-2014, 11:09 PM
CDV2003 CDV2003 is offline Linking Endnotes with Callouts (Fixed to Dynamic Endnote Numbering) Mac OS X Linking Endnotes with Callouts (Fixed to Dynamic Endnote Numbering) Office for Mac 2011
Novice
Linking Endnotes with Callouts (Fixed to Dynamic Endnote Numbering)
 
Join Date: Aug 2014
Location: NYC Metro
Posts: 4
CDV2003 is on a distinguished road
Default

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
Attached Files
File Type: doc VBA_Sample.doc (120.5 KB, 17 views)
Reply With Quote
  #6  
Old 08-23-2014, 11:20 PM
macropod's Avatar
macropod macropod is offline Linking Endnotes with Callouts (Fixed to Dynamic Endnote Numbering) Windows 7 64bit Linking Endnotes with Callouts (Fixed to Dynamic Endnote Numbering) Office 2010 32bit
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

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]
Reply With Quote
  #7  
Old 08-28-2014, 05:19 PM
CDV2003 CDV2003 is offline Linking Endnotes with Callouts (Fixed to Dynamic Endnote Numbering) Mac OS X Linking Endnotes with Callouts (Fixed to Dynamic Endnote Numbering) Office for Mac 2011
Novice
Linking Endnotes with Callouts (Fixed to Dynamic Endnote Numbering)
 
Join Date: Aug 2014
Location: NYC Metro
Posts: 4
CDV2003 is on a distinguished road
Default

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
Reply With Quote
Reply

Tags
auto numbering, endnotes, linking



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linking Endnotes with Callouts (Fixed to Dynamic Endnote Numbering) Repair two interspersed endnote numbering schemes? gidmeister Word VBA 6 12-15-2016 07:35 PM
Linking Endnotes with Callouts (Fixed to Dynamic Endnote Numbering) 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
Linking Endnotes with Callouts (Fixed to Dynamic Endnote Numbering) 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

Other Forums: Access Forums

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