Re: Word 2003; Any way to lock toolbars in place?

Tech-Archive recommends: Fix windows errors by optimizing your registry



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.
.



Relevant Pages

  • RE: Macros and Toolbars
    ... I'd create my own toolbar in the code and then assign the macros ... .LineStyle = xlContinuous ... .Weight = xlMedium ... ' SaveFileOff Macro ...
    (microsoft.public.excel.misc)
  • Re: Adding New Command Icon
    ... SI solved the problem by putting the folowing command into a macro: ... I will place the toolbar button in the relevant table ... What about hyperlinking the word document to the specific task ... To hyperlink a word document to a task, select the task, click ...
    (microsoft.public.project)
  • RE: An idiot needs help with a macro
    ... I'd suggest a macro, a new style, and a new toolbar. ... open a blank document and create the style Script Character ...
    (microsoft.public.word.vba.general)
  • Re: Please Help: Reviewing Toolbar
    ... Very strange, but anyways, it seems as if that last Macro text did the ... in the behavior of my mischievious Reviewing toolbar. ... I have tried the other fixes in the web article on macros, ...
    (microsoft.public.mac.office.word)
  • Re: Please Help: Reviewing Toolbar
    ... The Macro *should* force the toolbar visible. ... That should force the Reviewing toolbar into the middle of your screen, ... I have tried the other fixes in the web article on macros, ...
    (microsoft.public.mac.office.word)