Thanks for the reply.
There are several custom buttons created over the years on different
toolbars. If I can at least get a listing of all the custom buttons then
I would not have to guess if I found them all. This information has to
be store somewhere.
Thanks
Bill
> I wouldn't do it.
>
[quoted text clipped - 32 lines]
>>Thanks
>>Bill
This may help you:
Option Explicit
Sub testme()
Dim myCB As CommandBar
Dim myCtrl As CommandBarControl
Dim iCtr As Long
Dim DestCell As Range
Set DestCell = Workbooks.Add(1).Worksheets(1).Range("a1")
DestCell.Resize(1, 4).Value _
= Array("CommandBar Name", "Menu Name", "Control Caption", "OnAction")
Set DestCell = DestCell.Offset(1, 0)
For Each myCB In CommandBars
For iCtr = 1 To myCB.Controls.Count
On Error Resume Next
With myCB.Controls(iCtr)
If .BuiltIn = False Then
If .Type = msoControlPopup Then
For Each myCtrl In .Controls
DestCell.Value = myCB.Name
DestCell.Offset(0, 1).Value = .Caption
DestCell.Offset(0, 2).Value = myCtrl.Caption
DestCell.Offset(0, 3).Value = myCtrl.OnAction
Set DestCell = DestCell.Offset(1, 0)
Next myCtrl
Else
DestCell.Value = myCB.Name
DestCell.Offset(0, 2).Value = .Caption
DestCell.Offset(0, 3).Value = .OnAction
Set DestCell = DestCell.Offset(1, 0)
End If
End If
End With
On Error GoTo 0
Next iCtr
Next myCB
With DestCell.Parent
.Select
.Range("A1").Select
.Range("a2").Select
ActiveWindow.FreezePanes = True
With .UsedRange.Columns
.AutoFilter
.AutoFit
End With
End With
End Sub
> Thanks for the reply.
>
[quoted text clipped - 42 lines]
> >>Thanks
> >>Bill

Signature
Dave Peterson
B Nieds - 12 Mar 2008 01:59 GMT
Thanks Dave that helps.
Is there other values I can display as well? Just curious.
Thanks
Bill
> This may help you:
>
[quoted text clipped - 95 lines]
>>>>Thanks
>>>>Bill
Dave Peterson - 12 Mar 2008 03:40 GMT
Look at VBA's help for CommandbarControl. You'll see lots of properties to
choose from.
> Thanks Dave that helps.
>
[quoted text clipped - 102 lines]
> >>>>Thanks
> >>>>Bill

Signature
Dave Peterson
B Nieds - 12 Mar 2008 16:19 GMT
Thanks for your help. Now I have a list of the buttons I need to receate.
Bill
> Look at VBA's help for CommandbarControl. You'll see lots of properties to
> choose from.
[quoted text clipped - 105 lines]
>>>>>>Thanks
>>>>>>Bill
Dave Peterson - 12 Mar 2008 16:22 GMT
If you're rebuilding a toolbar, you might want to bite the bullet and do it all
mechanically.
For additions to the worksheet menu bar, I really like the way John Walkenbach
does it in his menumaker workbook:
http://j-walk.com/ss/excel/tips/tip53.htm
Here's how I do it when I want a toolbar:
http://www.contextures.com/xlToolbar02.html
(from Debra Dalgleish's site)
And if you use xl2007:
If you want to learn about modifying the ribbon, you can start at Ron de Bruin's
site:
http://www.rondebruin.nl/ribbon.htm
http://www.rondebruin.nl/qat.htm -- For macros for all workbooks (saved as an
addin)
or
http://www.rondebruin.nl/2007addin.htm
In xl2007, those toolbars and menu modifications will show up under the addins.
> Thanks for your help. Now I have a list of the buttons I need to receate.
>
[quoted text clipped - 109 lines]
> >>>>>>Thanks
> >>>>>>Bill

Signature
Dave Peterson
B Nieds - 13 Mar 2008 19:22 GMT
Great sites thanks for the references.
Bill
> If you're rebuilding a toolbar, you might want to bite the bullet and do it all
> mechanically.
[quoted text clipped - 132 lines]
>>>>>>>>Thanks
>>>>>>>>Bill