How to get a user commandbar to always appear

D

#DIV/0

I've found some posts from people who can't get rid of their command bars but
my problem is the opposite.
In Excel to get a custom commandbar to run at startup I just use:

Private Sub Workbook_Open()
CreateTheComandBar
End Sub

It can be in any template and if it's in Personal.xls then it'll appear in
all my workbooks.
How do I do the same in Word ?

Private Sub Document_Open()
CreateTheComandBar
End Sub

....in Normal.dot doesn't work. The same thing in Document_New works for
subsequent new documents but the bar ain't there when I start word.
Running "CreateTheComandBar" from the VBA editor works just fine but if I
close and restart Word it's gone.

Why are Word and Excel *still* so different in their behavior after so many
wonderful years of co-existence ?
 
H

Helmut Weber

Hi,

try putting CreateTheComandBar in autoexec.



--

Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Vista Small Business, Office XP
 
D

#DIV/0

Dankeschön, Helmut! That did it immediately.

Wow, autoexec.
Rings a bell.
Why does that name make me feel I've gone back in time...
 

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