Automatically replacing text with links...

K

Kris

Hi everybody!

Here's the story... I e-mailed a document to myself to avoid losing it when
my computer was being a bit schizo and refusing to save on any of my drives.
Somehow e-mailing this doc messed up all of my footnotes with linked sources
when I resaved it on our shared network drive, so none of them work any
longer. I had actually made the text of the link exactly the same as the
linked file path. So here is myquestion, is it possible to write a macro that
cycles through all the footnotes, highlights all the link text, and then
replaces the hyperlink to be that link text?

Thanks!
Kris
 
J

Jean-Guy Marcil

Kris said:
Hi everybody!

Here's the story... I e-mailed a document to myself to avoid losing it when
my computer was being a bit schizo and refusing to save on any of my drives.
Somehow e-mailing this doc messed up all of my footnotes with linked sources
when I resaved it on our shared network drive, so none of them work any
longer. I had actually made the text of the link exactly the same as the
linked file path. So here is myquestion, is it possible to write a macro that
cycles through all the footnotes, highlights all the link text, and then
replaces the hyperlink to be that link text?

Yu probably do not need a macro for that.

Do CTRL-F9 to toggle the field code display.
Now, do a Find/Replace to replace the link info.
Do CTRL-F9 again to toggle the field value display.
 
L

Lene Fredborg

....Ctrl+F9 should have been Alt+F9.

Alt+F9 toggles field codes. Ctrl+F9 inserts a new field.

--
Regards
Lene Fredborg - Microsoft MVP (Word)
DocTools - Denmark
www.thedoctools.com
Document automation - add-ins, macros and templates for Microsoft Word
 
J

Jean-Guy Marcil

Lene Fredborg said:
...Ctrl+F9 should have been Alt+F9.

Alt+F9 toggles field codes. Ctrl+F9 inserts a new field.

Ooops!
Very true!
Another case of dysfunctionality between the chair and the screen!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top