View Single Post
 
Old 05-04-2012, 05:52 PM
Charles Kenyon Charles Kenyon is offline Windows Vista Office 2010 32bit
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,530
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

You can create a new toolbar and simply copy the buttons you want from the Reviewing toolbar by Ctrl-Dragging them there.

I don't know the answer to your question so started with the macro listed at http://word.mvps.org/FAQs/MacrosVBA/...roToButton.htm and came up with the following which gives the caption (tooltip) and the button ID.

Code:
Sub ShowCaptionandID()

Dim oToolbar As CommandBar
Dim oButton As CommandBarControl

On Error Resume Next

'Replace the name if you've used another toolbar
Set oToolbar = CommandBars("Formatting")

For Each oButton In oToolbar.Controls

    'Check if it is a customized button

    If oButton.BuiltIn Then
        MsgBox oButton.Caption & " " & oButton.ID & " " ' & oButton.OnAction
    End If
    
Next

Set oButton = Nothing
Set oToolbar = Nothing

End Sub
To find the commands in the Customize list, look under All Commands. You really want to find them on the menus. For instance FileOpen. Unfortunately, most of them are not on the menus.
Reply With Quote