Hyperlinks in protected doc

R

Rick

I am attempting to insert hyperlinks in a protected
document using the suggestions at:

http://word.mvps.org/FAQs/TblsFldsFms/HLinksInforms.htm

The first entry in the manual index is 1. Mission
Statement and the hyperlink should drop the user to the
Mission Statement in the manual. Here is the syntax of
the code behind the hyperlink:

{ MacroButton "FollowLink"{HYPERLINK \l "Mission"} }

<the character after the "\" is the letter l>

The link works on double-click as long as the document is
unprotected. After protecting the document a double-
click flashes the Mission Statement for a brief instance
and then the cursor anchors at the very top of the
document well above the Index.

There is only a bookmark at the destination
named "Mission". The macro is:

Sub FollowLink()
Selection.Hyperlinks(1).Follow
End Sub

Anyone able to identify the problem and suggest a
solution?

TIA
 
C

Charles Kenyon

The code on the web page works well for external links. For internal links
to bookmarks in a protected section it will go to the next formfield
following the bookmark. If there is no next formfield, it will go to the top
of the document.
 
R

Rick

Thanks for the info Charles. So.... is there another
method to embed hyperlinks to bookmarks within a
protected document?.

I have tried saving the Word file as html so the users
can view the manual online without having them make
changes to the document. However; the conversion to html
drops a lot of formatting which makes reading it using
Explorer impossible.

Rick
 

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