Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / February 2008

Tip: Looking for answers? Try searching our database.

How to get a user commandbar to always appear

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
#DIV/0 - 18 Feb 2008 15:43 GMT
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 ?
Signature

David M
WinXP - Office2003 (Italian)

Helmut Weber - 18 Feb 2008 15:54 GMT
Hi,

try putting CreateTheComandBar in autoexec.

--

Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Vista Small Business, Office XP
#DIV/0 - 18 Feb 2008 16:08 GMT
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...

Signature

David M
WinXP - Office2003 (Italian)

> Hi,
>
[quoted text clipped - 7 lines]
>
> Vista Small Business, Office XP
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.