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 2005

Tip: Looking for answers? Try searching our database.

Problems deleting tollbar

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
arne - 31 Jan 2005 01:12 GMT
'I want to make a new toolbar, and delete it. Problem is that it seems to be
deleted ,but
'every time I restart word it is back. If  I run Sub createmytoolbar() 6
times it gives me 6
'toolbars after restart of Word ! The only way I can kill them is to delete
normal.dot!
'In word200, normal.dot i have created this

Sub createmytoolbar()
Application.CustomizationContext = NormalTemplate
Dim cBar As CommandBar
     For Each cBar In Application.CommandBars 'ActiveDocument.CommandBars
       If cBar.Name = "Mine" Then
                   MsgBox "Mine is there"
           cBar.Delete
                     End

                   End If
  Next cBar
           MsgBox "We must make Mine!"
     Call createmine
End Sub

Sub createmine()
MsgBox "Then iI have a routine for creating and it seems to work"
' routine
End Sub

What am I doing wrong??

arne
Andra - 01 Feb 2005 13:07 GMT
did you get 6 times "We must make Mine!" or 6 times "Mine is there", or
what?

> 'I want to make a new toolbar, and delete it. Problem is that it seems to be
> deleted ,but
[quoted text clipped - 27 lines]
>
> arne
 
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.