Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Hershmab
 
Posts: n/a
Default WORD 2002: How to stop recording Word Macro to allow for user inpu

I wish to create a macro that will display the Security tab of Tools/Options
and then stop there, so that the user can enter password details etc. But
while I am recording this macro and get to the Security tab, the Stop
Recording bar is not available, and I can only get to it by coming back out
of Options.

When I edit the VB code, I cannot see how to stop the macro from leaving the
Options/Security tab. So when the macro is run, it actually achieves nothing
- the user cannot even see it going to Options/Security!

If I had entered a password while recording, that same password would have
been applied to the current file. But I do not want a fixed password - that
is for the user to decide each time.
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Jezebel
 
Posts: n/a
Default WORD 2002: How to stop recording Word Macro to allow for user inpu

Macros don't work that way; and you can't use the macro recorder for
creating non-trivial macros. Use

dialogs(wdDialogToolsOptionsSecurity).Show

to display and optionally act on the security dialog. Be aware that mucking
around with security settings from within VBA opens up a whole can of worms.





"Hershmab" wrote in message
...
I wish to create a macro that will display the Security tab of
Tools/Options
and then stop there, so that the user can enter password details etc. But
while I am recording this macro and get to the Security tab, the Stop
Recording bar is not available, and I can only get to it by coming back
out
of Options.

When I edit the VB code, I cannot see how to stop the macro from leaving
the
Options/Security tab. So when the macro is run, it actually achieves
nothing
- the user cannot even see it going to Options/Security!

If I had entered a password while recording, that same password would have
been applied to the current file. But I do not want a fixed password -
that
is for the user to decide each time.



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
Word should catalog misspelled words to study. rndthought Microsoft Word Help 39 May 21st 23 02:47 AM
How to put graphics on envelopes? Steve Koenig Microsoft Word Help 21 April 29th 23 02:47 AM
Underscore (_) will not always display in RTF files (Word 2002). David A Edge Microsoft Word Help 6 June 14th 05 10:39 AM
Recording macros, Word 2003 vs Word 2002 Gina Microsoft Word Help 2 April 5th 05 05:13 AM
In Word, how can I see all files (*.*) in "save as"? citizen53 New Users 8 April 4th 05 04:56 PM


All times are GMT +1. The time now is 07:12 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"