Reply
 
Thread Tools Display Modes
  #1   Report Post  
Melisa
 
Posts: n/a
Default Error 5941 - The requested member of the collection does not exsis

I am trying to include a clickable hyperlink in a form.

I am using a macro:
Sub FollowLink()
Selection.Hyperlinks(1).Follow
End Sub

When I try to click into the link, I get the message "The requested member
of the collection does not exsist". This is my first time using macros and I
am at a loss.

Can anyone help me out?
  #2   Report Post  
Cindy M -WordMVP-
 
Posts: n/a
Default

Hi ?B?TWVsaXNh?=,

I am trying to include a clickable hyperlink in a form.

I am using a macro:
Sub FollowLink()
Selection.Hyperlinks(1).Follow
End Sub

When I try to click into the link, I get the message "The requested member
of the collection does not exsist". This is my first time using macros and I
am at a loss.

Can you give more details surrounding the circumstances in which you're using
the macro? Is there a Hyperlink in the selection? (The error message says not)

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)

  #3   Report Post  
Melisa
 
Posts: n/a
Default

Thanks for responding. I am creating a protected form but want to have links
within the form that are clickable.

I set the macro (as listed below), then inserted the hyperlink in the form
(while unprotected), pressed ALt + F9 to display feild codes, then I selected
the feild and pressed Ctrl + F9, then removed the spaces before and after the
URL, then pressed Alt + F9 to turn the feild code display off.

I protected the doc and tried to click on the link which is when I got the
error.

Does this info help?

"Cindy M -WordMVP-" wrote:

Hi ?B?TWVsaXNh?=,

I am trying to include a clickable hyperlink in a form.

I am using a macro:
Sub FollowLink()
Selection.Hyperlinks(1).Follow
End Sub

When I try to click into the link, I get the message "The requested member
of the collection does not exsist". This is my first time using macros and I
am at a loss.

Can you give more details surrounding the circumstances in which you're using
the macro? Is there a Hyperlink in the selection? (The error message says not)

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)


  #4   Report Post  
Jay Freedman
 
Posts: n/a
Default

Hi Melisa,

The method you used to create "clickable links" in the form won't work,
because a field that doesn't contain a keyword (such as HYPERLINK) is
considered to be a REF field, not a hyperlink.

A somewhat complex method of creating working hyperlinks in protected forms
is given at http://word.mvps.org/FAQs/TblsFldsFms/HLinksInForms.htm.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org

Melisa wrote:
Thanks for responding. I am creating a protected form but want to
have links within the form that are clickable.

I set the macro (as listed below), then inserted the hyperlink in the
form (while unprotected), pressed ALt + F9 to display feild codes,
then I selected the feild and pressed Ctrl + F9, then removed the
spaces before and after the URL, then pressed Alt + F9 to turn the
feild code display off.

I protected the doc and tried to click on the link which is when I
got the error.

Does this info help?

"Cindy M -WordMVP-" wrote:

Hi ?B?TWVsaXNh?=,

I am trying to include a clickable hyperlink in a form.

I am using a macro:
Sub FollowLink()
Selection.Hyperlinks(1).Follow
End Sub

When I try to click into the link, I get the message "The requested
member of the collection does not exsist". This is my first time
using macros and I am at a loss.

Can you give more details surrounding the circumstances in which
you're using the macro? Is there a Hyperlink in the selection? (The
error message says not)

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow
question or reply in the newsgroup and not by e-mail :-)



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:53 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"