Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-17-2014, 12:42 AM
ghumdinger ghumdinger is offline Convert manual cross references in footnotes to other footnotes to automatic cross references Windows 7 Convert manual cross references in footnotes to other footnotes to automatic cross references Office 2010 (Version 14.0)
Advanced Beginner
Convert manual cross references in footnotes to other footnotes to automatic cross references
 
Join Date: Jul 2010
Posts: 64
ghumdinger is on a distinguished road
Default Convert manual cross references in footnotes to other footnotes to automatic cross references

I am trying to devise a workflow to convert manual cross references in footnotes to other footnotes to automatic cross references. Due to a limitation in Word's Find and Replace in replacing with field codes, I am stuck. I understand that Find and Replace opertions can be performed with a macro without the limitation.



I have very limited ability in VBA coding, and I appreciate any help I can get.

My workflow comrpises of the following steps:

1. Make bookmarks of all footnote references in the body text using a modified version of the macro posted by MattP at wordbanter at http://www.wordbanter.com/showthread.php?t=124842)

The bookmarks created are named "Bookmark 1", "Bookmark 2" and so on and match the numbering of the footnote reference.

2. Now I need to replace all instances of the manual cross refs in the footnotes with the { FTNREF Bookmark X } field code. The manual cross refs follow this notation consistently: "see n X".

The problem is that Word's Find and Replace only recognize the field opening and closing braces "^d" in the Find box, but not in the Replace box.

The best I can do is to copy the "{FTNREF Bookmark" field (it this partial form) to clipboard, and then replace "see n" with "^c".

But I need the number that comes after the "see n" to be within the field code after "Bookmark". So for e.g. "see n 8", would be replaced with "{FTNREF Bookmark8}". The problem is that after I replace replace "see n" with "^c", the number that comes after "see n" is outside of the "{FTNREF Bookmark" field code.

Can anyone help with a macro to do such a find and replace operation?


Thanks.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert manual cross references in footnotes to other footnotes to automatic cross references Automatically updating cross-references in Footnotes jessy_33 Word 1 05-07-2014 02:45 PM
Convert manual cross references in footnotes to other footnotes to automatic cross references Bookmarks & cross-references Suchoklates Word 1 09-19-2013 02:32 AM
Convert manual cross references in footnotes to other footnotes to automatic cross references Cross-References acolussi Word 9 05-16-2013 02:11 AM
Cross References not hyperlinked in .HTM GreyOne Word 2 03-08-2013 01:35 AM
Cross References egcharles Office 0 04-19-2009 06:20 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:10 AM.


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