Using Hyperlink (Mail) Macro in Protected Word Forms (2003)

J

Jeni

I use the typical macro for hyperlinks in a password protected form.

Typical Hyperlink Macro:

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

Sub AutoExec()
Options.ButtonFieldClicks = 1
End Sub

But for some reason, it does not work on every pc in my company's footprint.
It will work on my pc, but not on my co-worker's.

Does anyone know what the reason would be?
Is it a personal setting?
Can the code be further modified?

I know about unprotecting sections, but I did *not* want to go that route.

Additional Notes:
-The macro is resting in the actual document (*not* a template or even a
module).
-Security settings are set to LOW or MEDIUM, and the macro has *not* been
duplicated by the end users. Personal settings seems to be mirroring mine.
-Outlook is already open.
-Connection to the internet is active.
-We're all running the same versions of Word, Outlook, and Windows.

I have even tried re-writting the macro to be more direct:

Sub FollowLink1()
Dim x As Integer
x = Selection.Hyperlinks.Count
ActiveDocument.FollowHyperlink ("mailto:p[email protected]")
End Sub

In this example, I would have to write a macro for *each* link separately,
but this method worked with a previous client; however, now it's not working
for another client.

Please help. I'm out of ideas.
 
G

Graham Mayor

Change

Sub AutoExec()
Options.ButtonFieldClicks = 1
End Sub

to

Sub AutoOpen()
Options.ButtonFieldClicks = 1
End Sub

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


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

Jeni

I think that worked. I can't remember why I changed it from an AutoOpen to an
AutoExec, but that seemed to fix it for several end users so far.

Thank you *so* much!
 

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