Converting popups to hyperlinks in Word

D

David

I have converted a number of large documents from HTML to
Word.doc files at the request of a user who needs to edit
the text in Word.

There are many popups in the original files, and they no
longer work in the word files, although regular hyperlinks
have come across fine.

What I want to do is convert the popup links to
hyperlinks, as the filename used remains the same, for
instance, opening the Edit Hyperlink window in Word on a
particular popup link will give an entry in the Type a
file or Web page name field which reads

javascript:BSSCPopup('anyfilename.htm');

if this is changed to read

anyfilename.htm

the link works fine, opening the anyfilename file in a new
IE window.

I would like to have a macro that does the conversion of
each of these links, having located each one manually
first, as there are links that do not need changed in the
file and I would not want a macro to process the whole doc.
 
W

Word Heretic

G'day "David" <[email protected]>,

I'd use a product called FAR to pre-edit the HTML prior to load
myself.



David said:
I have converted a number of large documents from HTML to
Word.doc files at the request of a user who needs to edit
the text in Word.

There are many popups in the original files, and they no
longer work in the word files, although regular hyperlinks
have come across fine.

What I want to do is convert the popup links to
hyperlinks, as the filename used remains the same, for
instance, opening the Edit Hyperlink window in Word on a
particular popup link will give an entry in the Type a
file or Web page name field which reads

javascript:BSSCPopup('anyfilename.htm');

if this is changed to read

anyfilename.htm

the link works fine, opening the anyfilename file in a new
IE window.

I would like to have a macro that does the conversion of
each of these links, having located each one manually
first, as there are links that do not need changed in the
file and I would not want a macro to process the whole doc.

Steve Hudson

Word Heretic, Sydney, Australia
Tricky stuff with Word or words for you.
Email: (e-mail address removed)
Products: http://www.geocities.com/word_heretic/products.html
Spellbooks: 728 pages of dump left and dropping...

The VBA Beginner's Spellbook: For all VBA users.
 

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