Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Outline toolbar

10 views
Skip to first unread message

Allewyn

unread,
Jan 18, 2006, 7:27:02 PM1/18/06
to
Is there a way to force Word to always display the Outline Toolbar?

Stefan Blom

unread,
Jan 19, 2006, 5:22:37 AM1/19/06
to
No, since the Outlining toolbar is context sensitive, it can't be
forced to display in any other view than Outline view.

However, you can create a custom toolbar and add the buttons that you
need, and use it instead of the built-in Outlining toolbar. Note that
if you want to put all of the buttons from the Outlining toolbar on
your custom toolbar, you'll find that some of them are greyed out when
you are not in Outline view.

If you want to disable the Outlining toolbar, you can do the
following:

1. Press Alt+F11 to display the Visual Basic Editor.

2. Press Ctrl+G to display the Immediate Window.

3. Type

CommandBars("Outlining").Enabled = False

and press Enter.

If you later want to enable the Outlining toolbar, just repeat the
above steps, with = True instead of = False.

--
Stefan Blom
Microsoft Word MVP


"Allewyn" wrote in message
news:6FDBB754-F761-46BF...@microsoft.com...

Graham Mayor

unread,
Jan 19, 2006, 5:40:05 AM1/19/06
to
Hmmm. The line
CommandBars("Outlining").Visible = True
in an autonew macro will force the toolbar on for new documents?

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

Stefan Blom wrote:
> No, since the Outlining toolbar is context sensitive, it can't be
> forced to display in any other view than Outline view.
>
> However, you can create a custom toolbar and add the buttons that you
> need, and use it instead of the built-in Outlining toolbar. Note that
> if you want to put all of the buttons from the Outlining toolbar on
> your custom toolbar, you'll find that some of them are greyed out when
> you are not in Outline view.
>
> If you want to disable the Outlining toolbar, you can do the
> following:
>
> 1. Press Alt+F11 to display the Visual Basic Editor.
>
> 2. Press Ctrl+G to display the Immediate Window.
>
> 3. Type
>
> CommandBars("Outlining").Enabled = False
>
> and press Enter.
>
> If you later want to enable the Outlining toolbar, just repeat the
> above steps, with = True instead of = False.
>
>

Stefan Blom

unread,
Jan 19, 2006, 5:49:46 AM1/19/06
to
When I tested this it generated an error message, if not in Outline
view. My understanding is that although you can use the Enabled
property and the Visible property to hide built-in toolbars, you
cannot force them to display, if they are context sensitive (which the
Outlining toolbar is). (I haven't tested in the most recent version of
Word, though.)

--
Stefan Blom
Microsoft Word MVP


"Graham Mayor" wrote in message
news:Om7wsSOH...@TK2MSFTNGP12.phx.gbl...

Graham Mayor

unread,
Jan 19, 2006, 8:59:50 AM1/19/06
to
It certainly works in Word 2003, however it displays a subset of the
commands shown in Outline view

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

Stefan Blom wrote:
> When I tested this it generated an error message, if not in Outline
> view. My understanding is that although you can use the Enabled
> property and the Visible property to hide built-in toolbars, you
> cannot force them to display, if they are context sensitive (which the
> Outlining toolbar is). (I haven't tested in the most recent version of
> Word, though.)
>
>

Stefan Blom

unread,
Jan 19, 2006, 9:36:17 AM1/19/06
to
Interesting! I guess I have some testing to do when I come home,
then...

--
Stefan Blom
Microsoft Word MVP

"Graham Mayor" wrote in message

news:efNF2KQH...@TK2MSFTNGP09.phx.gbl...

Allewyn

unread,
Jan 19, 2006, 12:57:05 PM1/19/06
to
CommandBars("Outlining").Enabled = true
Ok, I got the Sub or Function not defined error too. Does the thing need a
semicolon following true or something. I'll be patient and wiat for the
testing :)

Graham Mayor

unread,
Jan 20, 2006, 2:26:37 AM1/20/06
to
If you are using this as suggsted by Stefan then it should have been 'false'
unless you are bringing it back after dismissing it.
If you are using it as suggested by me in an autonew macro then it is not
.Enabled but .Visible that is true.
See http://www.gmayor.com/installing_macro.htm

Allewyn

unread,
Jan 20, 2006, 11:47:03 AM1/20/06
to
Hey, no prob; I couldn't make any of this work so I just dragged the
outlining symbols to the menu bar, where they are always visible.
I appreciate what all tried to do for me!

"Graham Mayor" wrote:

> If you are using this as suggsted by Stefan then it should have been 'false'
> unless you are bringing it back after dismissing it.
> If you are using it as suggested by me in an autonew macro then it is not

> ..Enabled but .Visible that is true.

Stefan Blom

unread,
Jan 26, 2006, 7:08:03 AM1/26/06
to
"Allewyn" wrote in message
news:D466BB38-3E52-4F65...@microsoft.com...

> CommandBars("Outlining").Enabled = true
> Ok, I got the Sub or Function not defined error too.

The error I saw in Word 200 was "Method 'Visible' of object
'CommandBar' failed"; the message is because Word 2000 doesn't allow
you to set the Visible property to TRUE (you can set it to FALSE,
though). Apparently, this limitation has been removed for Word 2003,
where Outlining is also on the View>Toolbars list even if you are not
in Outline view.

I don't know what caused the error message you were seeing. Are you
sure you typed the commands in correctly? If you press Debug in the
message box you'll see where execution stopped.

> Does the thing
> need a
> semicolon following true or something.

Semicolons are not required in VBA.

> I'll be patient and wiat for
> the
> testing :)

The testing was for my own peace of mind. :-)
I didn't expect to find any new information. Graham is a lot more
knowledgeable on VBA than I am.

0 new messages