Reply
 
Thread Tools Display Modes
  #1   Report Post  
mary
 
Posts: n/a
Default macro doesn't work when I unprotect form

I have a text form field that runs a macro on entry.
This macro shows a userform, when you click on print,
labels are supposed to print, based on a macro I've
written with mail merge, etc. The macro works when the
form is protected and I run it from Tools-Macro, but when
I unprotect the form I can't run the macro. What am I
doing wrong? I'm using Microsoft Word 2002. Thanks!
  #2   Report Post  
Charles Kenyon
 
Posts: n/a
Default

By definition, an on-entry macro is not going to run in an unprotected
document because there is no "entry." The formfields are not active in an
unprotected document.

If your macro unprotects the document, trying to run it on an unprotected
document may generate an errror. You might want to post your code in one of
the vba newsgroups for help with it.
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

"mary" wrote in message
...
I have a text form field that runs a macro on entry.
This macro shows a userform, when you click on print,
labels are supposed to print, based on a macro I've
written with mail merge, etc. The macro works when the
form is protected and I run it from Tools-Macro, but when
I unprotect the form I can't run the macro. What am I
doing wrong? I'm using Microsoft Word 2002. Thanks!



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
Table in a Form HiDbLevel Tables 12 February 27th 06 12:59 PM
Macro to update ToC in a form - I'm stuck! La La Lara Microsoft Word Help 7 February 24th 05 10:27 PM
Add a new page in a form by using a macro??? La La Lara Microsoft Word Help 1 January 19th 05 05:41 PM
Getting Spell Check Macro to work Tom Hyland Microsoft Word Help 8 January 14th 05 06:45 PM
macro for unprotecting form, update TOC, then reprotect form?? linda Microsoft Word Help 1 December 15th 04 02:31 PM


All times are GMT +1. The time now is 01:09 PM.

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"