Home |
Search |
Today's Posts |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 :-) |