Deleting classic commandbars and adding self made commandbars

V

vicenflor

Hello,

During the startup of a document, I want to delete or hide some classic
commandbars like "drawing", "outlining"? ..... On the other hand, I want to
display some self made commandbars, place at the top of my window. Could
anybody give me some examples how to achieve this. I have little experience
with vba, but perhaps with some examples, I can find my way ou.

Thanks
Vicenflor
 
H

Helmut Weber

Hi everybody,
You can show and hide toolbars by changing their Visible property.
There are code examples in the Help.

As easy as that.

Quite the opposite with positioning custom toolbars.
It seems, when trying to position custom toolbars in autoopen,
all of the toolsbars are available only after autoopen has been
completed.

I got three vertical custom toolbars in a template.
One on the left of the window, two parallel on the right.
If I create or open a doc, based on this template, the right
two toolsbars appear underneath, one on top of the other.
Applies to Word XP, in Word 97 everything was alright.

If I tried to position them in autoopen or autonew,
Word told me, they weren't existent. Though I could see them.

The remedy was an ontime-macro, started from autoopen or autonew,
with a second or so delay, to do the positioning.

Can't say whether this applies to versions higher than XP.

--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top