Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 05-04-2012, 05:52 PM
Charles Kenyon Charles Kenyon is offline How do you find what command a toolbar button represents? Windows Vista How do you find what command a toolbar button represents? 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
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you find what command a toolbar button represents? How do I enable a button in the quick access toolbar dpb001 Word VBA 1 05-02-2012 12:41 AM
How do you find what command a toolbar button represents? Email button on quick access toolbar castman Word 3 01-17-2012 02:24 PM
Check Boxes and Command Buttons Micky P Word VBA 0 10-27-2011 01:06 AM
How do you find what command a toolbar button represents? Command Button cksm4 Word VBA 7 02-27-2011 08:47 PM
Run Outside application from toolbar button Richard Harison Word 3 12-20-2005 03:22 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:29 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft