A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Formatting Long Documents
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

macro doesn't work when I unprotect form



 
 
Thread Tools Display Modes
  #1  
Old May 3rd, 2005, 05:40 PM
mary
external usenet poster
 
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  
Old May 3rd, 2005, 07:35 PM
Charles Kenyon
external usenet poster
 
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!



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CPU Usage When working with a Template I Created KM1 General Discussion 6 May 24th, 2005 04:38 PM
macrobuttons and protected document saland1 General Discussion 10 May 24th, 2005 02:39 PM
ECHO Causing Problems DS General Discussion 5 May 17th, 2005 02:19 AM
Query Only Creent Record? Hulk Running & Setting Up Queries 10 January 25th, 2005 06:39 PM
Strange stLinkCriteria behaviour on command button Anthony Dowd Using Forms 3 August 21st, 2004 03:01 AM


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.