Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
How to enable both a checkbox and hyperlink in same row of a table
I have a table with four columns in it. The first contains the checkbox and
the last the hyperlink. My problem is once I lock the form (to enable the checkbox) I cannot use the hyperlink. Any suggestions? And I'm using Word 2003. Thanks in advance! |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
How to enable both a checkbox and hyperlink in same row of a table
Rob wrote:
I have a table with four columns in it. The first contains the checkbox and the last the hyperlink. My problem is once I lock the form (to enable the checkbox) I cannot use the hyperlink. Any suggestions? And I'm using Word 2003. Thanks in advance! See http://www.word.mvps.org/FAQs/TblsFl...nksInForms.htm -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. |
#3
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
How to enable both a checkbox and hyperlink in same row of a t
I read the document and put in the items it told me to. The MacroButton
invokes the hyperlink properly when the form is not protected but not when it is. When protected a click sends the cursor to the first checkbox. Subsequent clicks send it back and forth between checkbox #1 and #2. The field codes are displayed below. The macro's name is Macro1 and the bookmark is Go1. Any ideas? {FORMCHECKBOX} {MacroButton " Macro1"{HYPERLINK \1 "Go1}} {FORMCHECKBOX} thanks, Rob "Jay Freedman" wrote: Rob wrote: I have a table with four columns in it. The first contains the checkbox and the last the hyperlink. My problem is once I lock the form (to enable the checkbox) I cannot use the hyperlink. Any suggestions? And I'm using Word 2003. Thanks in advance! See http://www.word.mvps.org/FAQs/TblsFl...nksInForms.htm -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. |
#4
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
How to enable both a checkbox and hyperlink in same row of a t
Keep reading further down in the article to the part about the AutoExec macro
that sets Options.ButtonFieldClicks = 1. Despite the article's implication that this is just a nice thing to do, it's actually necessary -- exactly because of the issue you've seen. If you keep the default of needing a double-click to activate the MacroButton field, the first click of the double-click is interpreted as an attempt to select the field. But in a protected document you can't select anything that isn't in a form field, and Word pushes the cursor to the nearest form field. That breaks the double-click, so the macro never runs. By making the MacroButton activate on the first click, you can make the scheme work. On Tue, 8 Jan 2008 15:25:01 -0800, Rob wrote: I read the document and put in the items it told me to. The MacroButton invokes the hyperlink properly when the form is not protected but not when it is. When protected a click sends the cursor to the first checkbox. Subsequent clicks send it back and forth between checkbox #1 and #2. The field codes are displayed below. The macro's name is Macro1 and the bookmark is Go1. Any ideas? {FORMCHECKBOX} {MacroButton " Macro1"{HYPERLINK \1 "Go1}} {FORMCHECKBOX} thanks, Rob "Jay Freedman" wrote: Rob wrote: I have a table with four columns in it. The first contains the checkbox and the last the hyperlink. My problem is once I lock the form (to enable the checkbox) I cannot use the hyperlink. Any suggestions? And I'm using Word 2003. Thanks in advance! See http://www.word.mvps.org/FAQs/TblsFl...nksInForms.htm -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. |
#5
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
How to enable both a checkbox and hyperlink in same row of a t
I am close but not quite there.
The first item to note is that when the form is not protected I can one-click on the MacroButton field (which now encases the hyperlink) and it goes to the bookmark. This is not what the write-up implies. It may make no difference though. I created the AutoExec macro in a global templete and then placed that template into my document. For a test I created two tables. The first contains all checkboxes and the hyperlinks. The last contains the bookmark I'm trying to hyperlink to. I placed the second table a few pages down to make sure the hyperlink actually goes to it. When I click the hyperlink I can see the second table under the first for just a millisecond and then it disappears. It looks like it goes down to the bookmark and then is pulled back up to the checkbox. All this with just 'one click' Any ideas? thanks Jay Freedman" wrote: Keep reading further down in the article to the part about the AutoExec macro that sets Options.ButtonFieldClicks = 1. Despite the article's implication that this is just a nice thing to do, it's actually necessary -- exactly because of the issue you've seen. If you keep the default of needing a double-click to activate the MacroButton field, the first click of the double-click is interpreted as an attempt to select the field. But in a protected document you can't select anything that isn't in a form field, and Word pushes the cursor to the nearest form field. That breaks the double-click, so the macro never runs. By making the MacroButton activate on the first click, you can make the scheme work. On Tue, 8 Jan 2008 15:25:01 -0800, Rob wrote: I read the document and put in the items it told me to. The MacroButton invokes the hyperlink properly when the form is not protected but not when it is. When protected a click sends the cursor to the first checkbox. Subsequent clicks send it back and forth between checkbox #1 and #2. The field codes are displayed below. The macro's name is Macro1 and the bookmark is Go1. Any ideas? {FORMCHECKBOX} {MacroButton " Macro1"{HYPERLINK \1 "Go1}} {FORMCHECKBOX} thanks, Rob "Jay Freedman" wrote: Rob wrote: I have a table with four columns in it. The first contains the checkbox and the last the hyperlink. My problem is once I lock the form (to enable the checkbox) I cannot use the hyperlink. Any suggestions? And I'm using Word 2003. Thanks in advance! See http://www.word.mvps.org/FAQs/TblsFl...nksInForms.htm -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. |
#6
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
How to enable both a checkbox and hyperlink in same row of a t
The concept you seem to be missing is that in a protected document, the
cursor _cannot_ go anywhere except into a form field. It doesn't make any difference whether you're trying to click in a non-field area with the mouse or go there via a macro or a hyperlink or the GoTo dialog, or any other means. The cursor will be forced to the next form field (or to the first one in the document, if there is no "next" one). If you need to send the cursor to someplace where there is currently no form field, I suppose you could insert a text form field there and set its maximum length to 1; that's about as close as you can get to "an uneditable spot where the cursor will go". An exit macro could try to ensure that the field is blanked if the user enters anything there (but that wouldn't help if the user just leaves the cursor in the field). Not that it's important at this point, but neither of your first two posts in this thread mentioned that you were trying to hyperlink to a bookmark in a protected area of the same document -- I had assumed you were trying to open a web page in a browser. -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. Rob wrote: I am close but not quite there. The first item to note is that when the form is not protected I can one-click on the MacroButton field (which now encases the hyperlink) and it goes to the bookmark. This is not what the write-up implies. It may make no difference though. I created the AutoExec macro in a global templete and then placed that template into my document. For a test I created two tables. The first contains all checkboxes and the hyperlinks. The last contains the bookmark I'm trying to hyperlink to. I placed the second table a few pages down to make sure the hyperlink actually goes to it. When I click the hyperlink I can see the second table under the first for just a millisecond and then it disappears. It looks like it goes down to the bookmark and then is pulled back up to the checkbox. All this with just 'one click' Any ideas? thanks Jay Freedman" wrote: Keep reading further down in the article to the part about the AutoExec macro that sets Options.ButtonFieldClicks = 1. Despite the article's implication that this is just a nice thing to do, it's actually necessary -- exactly because of the issue you've seen. If you keep the default of needing a double-click to activate the MacroButton field, the first click of the double-click is interpreted as an attempt to select the field. But in a protected document you can't select anything that isn't in a form field, and Word pushes the cursor to the nearest form field. That breaks the double-click, so the macro never runs. By making the MacroButton activate on the first click, you can make the scheme work. On Tue, 8 Jan 2008 15:25:01 -0800, Rob wrote: I read the document and put in the items it told me to. The MacroButton invokes the hyperlink properly when the form is not protected but not when it is. When protected a click sends the cursor to the first checkbox. Subsequent clicks send it back and forth between checkbox #1 and #2. The field codes are displayed below. The macro's name is Macro1 and the bookmark is Go1. Any ideas? {FORMCHECKBOX} {MacroButton " Macro1"{HYPERLINK \1 "Go1"}} {FORMCHECKBOX} thanks, Rob "Jay Freedman" wrote: Rob wrote: I have a table with four columns in it. The first contains the checkbox and the last the hyperlink. My problem is once I lock the form (to enable the checkbox) I cannot use the hyperlink. Any suggestions? And I'm using Word 2003. Thanks in advance! See http://www.word.mvps.org/FAQs/TblsFl...nksInForms.htm |
#7
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
How to enable both a checkbox and hyperlink in same row of a t
Thanks Jay for all your help. Sorry about not giving more details to begin
with but I wasn's sure which ones were needed at that time. I think the bottom line is there is no way to do what I want to do so I'll just do something different. Thanks again for your help. "Jay Freedman" wrote: The concept you seem to be missing is that in a protected document, the cursor _cannot_ go anywhere except into a form field. It doesn't make any difference whether you're trying to click in a non-field area with the mouse or go there via a macro or a hyperlink or the GoTo dialog, or any other means. The cursor will be forced to the next form field (or to the first one in the document, if there is no "next" one). If you need to send the cursor to someplace where there is currently no form field, I suppose you could insert a text form field there and set its maximum length to 1; that's about as close as you can get to "an uneditable spot where the cursor will go". An exit macro could try to ensure that the field is blanked if the user enters anything there (but that wouldn't help if the user just leaves the cursor in the field). Not that it's important at this point, but neither of your first two posts in this thread mentioned that you were trying to hyperlink to a bookmark in a protected area of the same document -- I had assumed you were trying to open a web page in a browser. -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. Rob wrote: I am close but not quite there. The first item to note is that when the form is not protected I can one-click on the MacroButton field (which now encases the hyperlink) and it goes to the bookmark. This is not what the write-up implies. It may make no difference though. I created the AutoExec macro in a global templete and then placed that template into my document. For a test I created two tables. The first contains all checkboxes and the hyperlinks. The last contains the bookmark I'm trying to hyperlink to. I placed the second table a few pages down to make sure the hyperlink actually goes to it. When I click the hyperlink I can see the second table under the first for just a millisecond and then it disappears. It looks like it goes down to the bookmark and then is pulled back up to the checkbox. All this with just 'one click' Any ideas? thanks Jay Freedman" wrote: Keep reading further down in the article to the part about the AutoExec macro that sets Options.ButtonFieldClicks = 1. Despite the article's implication that this is just a nice thing to do, it's actually necessary -- exactly because of the issue you've seen. If you keep the default of needing a double-click to activate the MacroButton field, the first click of the double-click is interpreted as an attempt to select the field. But in a protected document you can't select anything that isn't in a form field, and Word pushes the cursor to the nearest form field. That breaks the double-click, so the macro never runs. By making the MacroButton activate on the first click, you can make the scheme work. On Tue, 8 Jan 2008 15:25:01 -0800, Rob wrote: I read the document and put in the items it told me to. The MacroButton invokes the hyperlink properly when the form is not protected but not when it is. When protected a click sends the cursor to the first checkbox. Subsequent clicks send it back and forth between checkbox #1 and #2. The field codes are displayed below. The macro's name is Macro1 and the bookmark is Go1. Any ideas? {FORMCHECKBOX} {MacroButton " Macro1"{HYPERLINK \1 "Go1"}} {FORMCHECKBOX} thanks, Rob "Jay Freedman" wrote: Rob wrote: I have a table with four columns in it. The first contains the checkbox and the last the hyperlink. My problem is once I lock the form (to enable the checkbox) I cannot use the hyperlink. Any suggestions? And I'm using Word 2003. Thanks in advance! See http://www.word.mvps.org/FAQs/TblsFl...nksInForms.htm |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how to hyperlink table no. of word in the same document | Microsoft Word Help | |||
hyperlink not working in table | New Users | |||
hyperlink table of contents | Microsoft Word Help | |||
Hyperlink for table of contents | Tables | |||
Hyperlink macro assigned to checkbox form field | Microsoft Word Help |