Button won't work in protected form

G

Greg

How can I get a button to work in a protected form. I've
looked at this example and can see it works fine:
http://www.mvps.org/word/FAQs/TblsFldsFms/HidePrintButton.h
tm

but my form has several fields in it with a button at the
end. when the button is clicked word doesn't run the
macro, it just skips to the top of the document. I've
tried using section breaks to deprotect the second half of
the form but this doesn't work at all for some reason.

Any ideas please? Thanks.
 
C

Cindy M -WordMVP-

Hi Greg,

You want to use a MACROBUTTON field to run a macro in a
protected form. Look this up in Word's help, to get started.

You can set Options.ButtonFieldClicks = 1 so that the field
will react to a single, rather than double click.
How can I get a button to work in a protected form. I've
looked at this example and can see it works fine:
http://www.mvps.org/word/FAQs/TblsFldsFms/HidePrintButton.h
tm

but my form has several fields in it with a button at the
end. when the button is clicked word doesn't run the
macro, it just skips to the top of the document. I've
tried using section breaks to deprotect the second half of
the form but this doesn't work at all for some reason.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep
30 2003)
http://www.mvps.org/word

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

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