Macro doesn't run when template is locked?

J

Jeremy

I've got a template created where users fill in text fields. I have a
macrobutton that activates my "save" macro. For some reason when I lock the
form, I can't double click my macrobutton to activate it. It does work
properly when the form is unlocked.

Any ideas/suggestions?
Jeremy
 
C

Cindy M -WordMVP-

Hi Jeremy,
I've got a template created where users fill in text fields. I have a
macrobutton that activates my "save" macro. For some reason when I lock the
form, I can't double click my macrobutton to activate it. It does work
properly when the form is unlocked.
Is this a MacroButton FIELD? Or did you insert some other kind of button (like
from the Controls Toolbox)? Which version of Word?

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 :)
 
J

Jeremy

Hi Cindy.

Finally...somebody is going to help answer this question!

It is a macrobutton....that's all I know....this is the code when I right
click and select toggle field codes: {MACROBUTTON save Double Click to
Save} Maybe it would work better if I used an actual button off the
controls toolbox?

My word version is 2002 (10.2627.2625). The one that comes with Office XP
Pro.

Thank for the help,
Jeremy
 
J

Jean-Guy Marcil

Jeremy was telling us:
Jeremy nous racontait que :
Hi Cindy.

Finally...somebody is going to help answer this question!

It is a macrobutton....that's all I know....this is the code when I
right click and select toggle field codes: {MACROBUTTON save Double
Click to Save} Maybe it would work better if I used an actual button
off the controls toolbox?

My word version is 2002 (10.2627.2625). The one that comes with
Office XP Pro.

Your field as posted worked on my machine (Word 2003).

But, I see that the name of the macro is "save". It is not a good idea to
use an existing method/property name for a macro/variable you create (it
will even generate error message in some cases). Add a prefix or a suffix,
as in "mySave" or "saveMyDoc".
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
C

Cindy M -WordMVP-

Hi Jeremy,
It is a macrobutton....that's all I know....this is the code when I right
click and select toggle field codes: {MACROBUTTON save Double Click to
Save} Maybe it would work better if I used an actual button off the
controls toolbox?

My word version is 2002 (10.2627.2625). The one that comes with Office XP
Pro.
Have you inserted it into a TextBox, by any chance? Anything in the graphics
layer is locked out when a document is protected as a form. If you need to
"float" the button, try converting the text box to a frame (look in the
Format dialog box, Text box tab).

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 :)
 

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