Follow hyperlinks in a protected word document

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi!
I have problem to follow the inserted hyperlink (files and web site) that i
have put in to text.

It works good when i dont protect the document
 
I've followed the instructions listed in this article and am still unable to
get my hyperlinks to work once the document is protected for forms. Can you
provide any insight into why this is not working for me.
 
I've followed the instructions listed in this article and am still unable to
get my hyperlinks to work once the document is protected for forms. Can you
provide any insight into why this is not working for me.

By "this article", I assume you mean
http://www.word.mvps.org/FAQs/TblsFldsFms/HLinksInForms.htm.

Without seeing your document or template, the best we can do is guess.

- Did you insert the fields by pressing Ctrl+F9? Just typing brackets doesn't
work.

- In the field code, does the word "FollowLink" (between "MacroButton" and the
hyperlink field) match the name of the macro? (Capitalization is ignored, but
the spelling must be exact.)

- Did you include one of the two macros under the topic "Double-click or
single-click"? Although the article seems to imply that this is an optional
step, it really is required.

- After checking those things, if it still doesn't work, are you sure the macro
is enabled and that it runs when you click the link? Try adding this line to the
FollowLink macro just after the Sub FollowLink line:

MsgBox "Follow link?"

If you see a message box when you click the link, then the macro is running; in
that case the problem is somewhere outside Word, maybe in the part of Windows
that should launch the default browser. If you don't see the message box, then
the macro isn't running, which could be caused by a Word macro security setting
that disables all macros.
 
You are correct, I was referring to the article
http://www.word.mvps.org/FAQs/TblsFldsFms/HLinksInForms.htm.

In response to your questions...
Yes, I inserted the fields by pressing ctrl+F9.
Yes, the word "FollowLink" matches the name of the macro.
Yes, I included the macro
Yes, I included a msgbox that does display when I click the link.

The macro works and launches the browser when the document is unprotected.
Once I protect the document for forms, it ceases to work.
 
Did you nest the hyperlink in a MacroButton field? Did you read the
"warning" in the article?
 

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

Back
Top