Hyperlinks in protected doc

  • Thread starter Thread starter Rick
  • Start date Start date
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
 
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.
--

Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
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
 
Back
Top