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 / Menus and Toolbars / March 2005

Tip: Looking for answers? Try searching our database.

How to identify custom toolbars?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Adam - 19 Mar 2005 01:06 GMT
I am troubleshooting and need to easily identify any custom toolbars that
the user has added to Word.

Are they kept in a certain place, or perhaps I can identify them form the
default toolbars somehow?

Thanks!
Graham Mayor - 19 Mar 2005 08:10 GMT
Toolbars can be added in the default normal.dot template, in add-in
templates, in document templates and in documents themselves.

If you are trouble shooting - start with
http://www.gmayor.com/what_to_do_when_word_crashes.htm and then look at
http://word.mvps.org/FAQs/AppErrors/ProbsOpeningWord.htm

Signature

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

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

> I am troubleshooting and need to easily identify any custom toolbars
> that the user has added to Word.
[quoted text clipped - 3 lines]
>
> Thanks!
Jean-Guy Marcil - 19 Mar 2005 16:09 GMT
Adam was telling us:
Adam nous racontait que :

> I am troubleshooting and need to easily identify any custom toolbars
> that the user has added to Word.
>
> Are they kept in a certain place, or perhaps I can identify them form
> the default toolbars somehow?

Try this:

'_______________________________________
Dim MyToolBar As CommandBar

For Each MyToolBar In CommandBars
   If Not MyToolBar.BuiltIn Then
       MsgBox MyToolBar.Name & " is a custom toolbar."
   End If
Next
'_______________________________________

But be careful because this will also catch toolbar that were added by
add-ins, such as Adobe Acrobat....

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org

Klaus Linke - 28 Mar 2005 16:05 GMT
You can also check MyToolBar.Context.
This should usually be Normat.dot for toolbars the user has added, and the template if it was added by a global template.
Add-Ins often add their toolbars to Normal.dot temporarily, so .Context doesn't always help.

Greetings,
Klaus

> Adam was telling us:
> Adam nous racontait que :
[quoted text clipped - 4 lines]
> > Are they kept in a certain place, or perhaps I can identify them form
> > the default toolbars somehow?

"Jean-Guy Marcil" <no-spam@leaveme.alone> schrieb:
> Try this:
>
[quoted text clipped - 10 lines]
> But be careful because this will also catch toolbar that were added by
> add-ins, such as Adobe Acrobat....
 
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.