Prev: GetCrossReferenceItems is acting flakey
Next: Macros failing in different language versions of Word
From: Roderick O'Regan on 19 Mar 2010 15:34 If I can remember correctly, when one opens a .dot file in Word 2007, any toolbars you have created get added to the Add-ins tab on the ribbon. It's then just a question of right clicking on the toolbar located in the add-in and selecting the command to delete it. Then save it as a .dotm ....or something like that... On Thu, 18 Mar 2010 08:02:50 -0400, "Greg Maxey" <gmaxey(a)mIKEvICTORpAPAsIERRA.oSCARrOMEOgOLF> wrote: >Sub ScratchMaco() >Dim oCB As CommandBar >Dim oCBC As CommandBarControl >Set oCB = Application.CommandBars("Custom 1") 'Use your custom toolbar name. >oCB.Delete 'If you want to delete the toolbar >'Or >oCB.Controls(1).Delete 'Indexed control (i.e., the first control on the >toolbar) >'Or >For Each oCBC In oCB.Controls > If oCBC.Caption = "&New..." Then oCBC.Delete 'Delete by control caption >using your assigned captions. >Next >End Sub > >Buck Jeppson wrote: >> That's the problem. I open the template but I can't figure out how to >> delete the old toolbar. Is there a way to delete a toolbar? >> >> I don't have Word 2003 any more, so I can't delete it from the >> original template and then rebuild. >> >> "Doug Robbins - Word MVP" wrote: >> >>> I am thinking that if you use File>Open to open the template and >>> then save it in either dotx (or dotm if it has macros that you still >>> need) format, the toolbars may be deleted from it. >>> >>> Alternatively, if you still have access to Word 2003, you could open >>> the template in that version to modify it. >>> >>> See the following page of fellow MVP Graham Mayor's website for tips >>> on running both versions on the one machine. >>> >>> http://www.gmayor.com/Toolbars_in_word_2007.htm >>> >>> -- >>> Hope this helps. >>> >>> Please reply to the newsgroup unless you wish to avail yourself of my >>> services on a paid consulting basis. >>> >>> Doug Robbins - Word MVP, originally posted via msnews.microsoft.com >>> >>> "Buck Jeppson" <BuckJeppson(a)discussions.microsoft.com> wrote in >>> message news:26B8CAF7-9889-4D8B-998F-7E3F07AEEBB9(a)microsoft.com... >>>> I have a Word 2003 template for which I created a custom toolbar >>>> with 5 buttons. The client migrated to 2007, so I did as well. Some >>>> of the buttons >>>> don't work. I want to either delete some buttons or the entire >>>> toolbar but I >>>> can't figure out how. Someone please help. I'm near bridge jumping. >
From: Doug Robbins - Word MVP on 20 Mar 2010 03:16 Your memory is good. Great tip. -- Hope this helps. Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis. Doug Robbins - Word MVP, originally posted via msnews.microsoft.com "Roderick O'Regan" <rory(a)removethis.theoregans.com> wrote in message news:b8k7q5hpq0s6cgjpa86fas32spiphml996(a)4ax.com... > If I can remember correctly, when one opens a .dot file in Word 2007, > any toolbars you have created get added to the Add-ins tab on the > ribbon. > > It's then just a question of right clicking on the toolbar located in > the add-in and selecting the command to delete it. > > Then save it as a .dotm > > ...or something like that... > > > On Thu, 18 Mar 2010 08:02:50 -0400, "Greg Maxey" > <gmaxey(a)mIKEvICTORpAPAsIERRA.oSCARrOMEOgOLF> wrote: > >>Sub ScratchMaco() >>Dim oCB As CommandBar >>Dim oCBC As CommandBarControl >>Set oCB = Application.CommandBars("Custom 1") 'Use your custom toolbar >>name. >>oCB.Delete 'If you want to delete the toolbar >>'Or >>oCB.Controls(1).Delete 'Indexed control (i.e., the first control on the >>toolbar) >>'Or >>For Each oCBC In oCB.Controls >> If oCBC.Caption = "&New..." Then oCBC.Delete 'Delete by control caption >>using your assigned captions. >>Next >>End Sub >> >>Buck Jeppson wrote: >>> That's the problem. I open the template but I can't figure out how to >>> delete the old toolbar. Is there a way to delete a toolbar? >>> >>> I don't have Word 2003 any more, so I can't delete it from the >>> original template and then rebuild. >>> >>> "Doug Robbins - Word MVP" wrote: >>> >>>> I am thinking that if you use File>Open to open the template and >>>> then save it in either dotx (or dotm if it has macros that you still >>>> need) format, the toolbars may be deleted from it. >>>> >>>> Alternatively, if you still have access to Word 2003, you could open >>>> the template in that version to modify it. >>>> >>>> See the following page of fellow MVP Graham Mayor's website for tips >>>> on running both versions on the one machine. >>>> >>>> http://www.gmayor.com/Toolbars_in_word_2007.htm >>>> >>>> -- >>>> Hope this helps. >>>> >>>> Please reply to the newsgroup unless you wish to avail yourself of my >>>> services on a paid consulting basis. >>>> >>>> Doug Robbins - Word MVP, originally posted via msnews.microsoft.com >>>> >>>> "Buck Jeppson" <BuckJeppson(a)discussions.microsoft.com> wrote in >>>> message news:26B8CAF7-9889-4D8B-998F-7E3F07AEEBB9(a)microsoft.com... >>>>> I have a Word 2003 template for which I created a custom toolbar >>>>> with 5 buttons. The client migrated to 2007, so I did as well. Some >>>>> of the buttons >>>>> don't work. I want to either delete some buttons or the entire >>>>> toolbar but I >>>>> can't figure out how. Someone please help. I'm near bridge jumping. >>
First
|
Prev
|
Pages: 1 2 Prev: GetCrossReferenceItems is acting flakey Next: Macros failing in different language versions of Word |