Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / May 2006

Tip: Looking for answers? Try searching our database.

How to run macro in protected Document.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
acherony - 12 May 2006 12:40 GMT
Hi I protected my document with ActiveDoc.Protect wdAllowOnlyFormFields
and I would like to use some macros, but I cannot start the macros.

what can I do
Jean-Guy Marcil - 12 May 2006 14:44 GMT
acherony was telling us:
acherony nous racontait que :

> Hi I protected my document with ActiveDoc.Protect
> wdAllowOnlyFormFields and I would like to use some macros, but I
> cannot start the macros.
>
> what can I do

How  are you trying to start those macros?

   Tools > Macros or ALT-F8 will not work.

But, a toolbar button or a keyboard shortcut will invoke a macro even if the
document is protected.

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org 

acherony - 12 May 2006 15:06 GMT
> How  are you trying to start those macros?
>
>     Tools > Macros or ALT-F8 will not work.
>
> But, a toolbar button or a keyboard shortcut will invoke a macro even if the
> document is protected.

I was trying ALT-F8

Q: how do I create toolbar button for a macro

Jean-Guy Marcil - 12 May 2006 15:20 GMT
acherony was telling us:
acherony nous racontait que :

>> How  are you trying to start those macros?
>>
[quoted text clipped - 6 lines]
>
> Q: how do I create toolbar button for a macro

Do you want the button on a new toolbar (that culd potentially contain only
one button) or simnplay ad the butyton to an existing toolbar?

If the latter:

Tools > Customize... >Commands tab.
There, in the list on the left ("Categories"), select "Macros".
Then, make sure that you selected your template/document in the "Save in"
drop down at the bottom of the dialog. Finally, locate your macro in the
list on the right ("Commands").

Once you have located your macro select it and drag it to the toolbar where
you want it. This will create a button with a caption resembling:
"MyProjectName.MyModuleName.MyMacroName". Normally we want to change that.
Right click the button to access all the properties you can manipulate. You
can even copy paste from small icon on the page of the document or another
button face if you want a picture on the button face.

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org 

Jean-Guy Marcil - 12 May 2006 21:57 GMT
Jean-Guy Marcil was telling us:
Jean-Guy Marcil nous racontait que :

> Do you want the button on a new toolbar (that culd potentially
> contain only one button) or simnplay ad the butyton to an existing
> toolbar?

Ouch!
Looks as though I was typing on a microscopic keyboard or I was on
something!

Sadly, it was neither! I am just a terrible typist!

To my defence, I do not use a spell checker because I type as often in
English as I do in French... It is a pain to always have to change the
dictionary before typing a message or before starting a session. So I
normally read through my texts more than once to correct the typos and
various other mistakes.. I guess I forgot in that case!

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org 

Charles Kenyon - 12 May 2006 21:42 GMT
http://word.mvps.org/FAQs/Customization/AsgnCmdOrMacroToToolbar.htm
Signature

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://word.mvps.org/FAQs/ which is awesome!

My criminal defense site: http://addbalance.com
--------- --------- --------- --------- --------- ---------
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.

>> How  are you trying to start those macros?
>>
[quoted text clipped - 7 lines]
>
> Q: how do I create toolbar button for a macro
Charles Kenyon - 14 May 2006 23:59 GMT
You need to put the macros on a custom toolbar (and make sure they will work
in a protected document).
Signature

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://word.mvps.org/FAQs/ which is awesome!

My criminal defense site: http://addbalance.com
--------- --------- --------- --------- --------- ---------
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.

> Hi I protected my document with ActiveDoc.Protect wdAllowOnlyFormFields
> and I would like to use some macros, but I cannot start the macros.
>
> what can I do
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.