Prev: GetCrossReferenceItems is acting flakey
Next: Macros failing in different language versions of Word
From: Buck Jeppson on 17 Mar 2010 20:34 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 18 Mar 2010 03:53 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: Buck Jeppson on 18 Mar 2010 04:16 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: bryan s on 18 Mar 2010 07:42 Try this: To remove it, open the template in Word, open the Immediate window in the VBA editor, and enter this command: ActiveDocument.CommandBars("button1").Delete ActiveDocument.CommandBars("button2").Delete etc. Press Enter at the end of it, and then save the template. "Buck Jeppson" <BuckJeppson(a)discussions.microsoft.com> wrote in message news:13EF0F77-975C-4E48-80EB-3B8F80E01D69(a)microsoft.com... > 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: Greg Maxey on 18 Mar 2010 08:02 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.
|
Next
|
Last
Pages: 1 2 Prev: GetCrossReferenceItems is acting flakey Next: Macros failing in different language versions of Word |