Get rid of legacy 2003 custom toolbars in 2007

  • Follow


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.
0
Reply Utf 3/18/2010 12:34:01 AM

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@discussions.microsoft.com> wrote in message 
news:26B8CAF7-9889-4D8B-998F-7E3F07AEEBB9@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. 

0
Reply Doug 3/18/2010 7:53:40 AM


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@discussions.microsoft.com> wrote in message 
> news:26B8CAF7-9889-4D8B-998F-7E3F07AEEBB9@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. 
> 
0
Reply Utf 3/18/2010 8:16:01 AM

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@discussions.microsoft.com> wrote in message 
news:13EF0F77-975C-4E48-80EB-3B8F80E01D69@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@discussions.microsoft.com> wrote in message
>> news:26B8CAF7-9889-4D8B-998F-7E3F07AEEBB9@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.
>> 


0
Reply bryan 3/18/2010 11:42:53 AM

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@discussions.microsoft.com> wrote in
>> message news:26B8CAF7-9889-4D8B-998F-7E3F07AEEBB9@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. 


0
Reply Greg 3/18/2010 12:02:50 PM

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@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@discussions.microsoft.com> wrote in
>>> message news:26B8CAF7-9889-4D8B-998F-7E3F07AEEBB9@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. 
>
0
Reply Roderick 3/19/2010 7:34:29 PM

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@removethis.theoregans.com> wrote in message 
news:b8k7q5hpq0s6cgjpa86fas32spiphml996@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@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@discussions.microsoft.com> wrote in
>>>> message news:26B8CAF7-9889-4D8B-998F-7E3F07AEEBB9@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.
>> 
0
Reply Doug 3/20/2010 7:16:01 AM

6 Replies
622 Views

(page loaded in 0.11 seconds)

Similiar Articles:
















7/29/2012 11:02:54 PM


Reply: