Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Rob Rob is offline
external usenet poster
 
Posts: 77
Default 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   Report Post  
Posted to microsoft.public.word.docmanagement
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default 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   Report Post  
Posted to microsoft.public.word.docmanagement
Rob Rob is offline
external usenet poster
 
Posts: 77
Default 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   Report Post  
Posted to microsoft.public.word.docmanagement
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default 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   Report Post  
Posted to microsoft.public.word.docmanagement
Rob Rob is offline
external usenet poster
 
Posts: 77
Default 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   Report Post  
Posted to microsoft.public.word.docmanagement
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default 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   Report Post  
Posted to microsoft.public.word.docmanagement
Rob Rob is offline
external usenet poster
 
Posts: 77
Default 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

Posting Rules

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to hyperlink table no. of word in the same document sompura Microsoft Word Help 1 September 24th 07 04:26 PM
hyperlink not working in table Professor Jim New Users 1 September 12th 07 09:41 PM
hyperlink table of contents frustrated Microsoft Word Help 5 July 25th 06 11:06 PM
Hyperlink for table of contents ann Tables 1 May 17th 06 11:15 PM
Hyperlink macro assigned to checkbox form field Jack_Feeman Microsoft Word Help 4 August 24th 05 09:06 AM


All times are GMT +1. The time now is 09:14 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"