Re: Word 2003; Any way to lock toolbars in place?
- From: "Klaus Linke" <info@xxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 26 Jun 2005 06:27:51 +0200
Hi,
You can do that with a macro... say for the formatting toolbar:
CommandBars("Formatting").Protection=msoBarNoChangeDock XOR CommandBars("Formatting").Protection
(In case you're wondering about the XOR with the original setting: This should toggle NoChangeDock and keep the other kinds of protection untouched... I hope)
This would allow you to move the toolbar around, but not to "rip it off".
If you want to lock it down completely:
CommandBars("Formatting").Protection=msoBarNoMove XOR CommandBars("Formatting").Protection
To remove that type of protection, run the same line again.
The easiest way to run one-line macros like this:
-- open the VBA editor (Alt+F11),
-- go into the immediate window (Ctrl+G),
-- copy (Ctrl+C) the line from here and paste (Ctrl+V) it in that window,
-- hit the Enter or Return key at the end of the line.
There are more types of protection, which you can see in the VBA editor's help topic on the Protection property (... Hit F1 with the cursor in the word "Protection", then expand the help topic): Say, msoBarNoCustomize to disallow customizations in the toolbar, or msoBarNoChangeVisible to disallow making the toolbar invisible (or visible if it's currently invisible).
For the other toolbars you want to lock down, use their names instead -- say CommandBars("Standard").
Regards,
Klaus
"pb2000" wrote:
>I have one PC on which it would help to be able to lock the Word 2003
> toolbars in place so that cannot be dragged (by accident) to unintended
> places. Would anyone know of a way, including add-ins, that this can be done?
> Many thanks.
.
- References:
- Word 2003; Any way to lock toolbars in place?
- From: pb2000
- Word 2003; Any way to lock toolbars in place?
- Prev by Date: Re: Toolbar GONZO again
- Next by Date: Re: Enlarging Toolbar Icons When In High Resolution
- Previous by thread: Word 2003; Any way to lock toolbars in place?
- Index(es):
Relevant Pages
|