hyperlinks and locked documents

J

Jeanne

I have several Word Forms that are locked and I want to keep the forms locked
but have an emal hyperlink and a website hyperlink. I have a VBA SubProcedure
that I was trying to use
Option Explicit
Sub LockedHyperlinks()
Selection.Hyperlinks(1).Follow
End Sub

{MACROBUTTON "LockedHyperlinks"{HYPERLINK "http://www.vericare.com"}}

and when I run it I get Run-time error '4198':

Command failed

Option Explicit
Sub LockedHyperlinks()
Selection.Hyperlinks(1).Follow -> this section is in
YELLOW so I presume this is the error
End Sub

What am I doind wrong
 
G

Graham Mayor

It works for me in both Word 2003 and 2007?

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
J

Jeanne

Thanks - I was doing more than I should with the text in word - I simplfied
it and and I reduced the Security of the Macro from Very High to Medium and
now the website pulls up

But now I am trying to hyperlink an email address and I am getting the same
message

{MACROBUTTON "LockedHyperlinks"{HYPERLINK "(e-mail address removed)"}}
 
J

Jeanne

I should have asked this question as well. Do I need to have another Macro or
add to for the email address or should the one work for all hyperlinks in the
locked Document? I am using Word 2003

Option Explicit
Sub LockedHyperlinks()
Selection.Hyperlinks(1).Follow
End Sub

{MACROBUTTON "LockedHyperlinks"{HYPERLINK "(e-mail address removed)"}}
when I lock it I get Command Failed

{MACROBUTTON "LockedHyperlinks"{HYPERLINK "http://www.vericare.com"}} this
works
 
G

Graham Mayor

Change the Hyperlink to
{ MACROBUTTON "LockedHyperlinks" { HYPERLINK
"mailto:[email protected]" } }

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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