Control Add Ins

davidhall80

Well-known Member
Joined
Jul 8, 2006
Messages
663
This add in works, but I can't see the icon on my Menu Bar. The only way that I know its there is because when I hold my mouse over that area of my toolbar, the name of the Macro pops up. Are there any commands to add icons and words. I'd like to see a button image and the name of the Macro on the toolbar. Thanks in advance.



Code:
Private Sub Workbook_AddinInstall()
    With Application.CommandBars("Standard").Controls.Add
        .Caption = "&David"
        .OnAction = "MRHALL"
    End With
End Sub
Sub MRHALL()
    Range("G23") = "David"
End Sub
 

Some videos you may like

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

davidhall80

Well-known Member
Joined
Jul 8, 2006
Messages
663
Thanks...it works now....

Code:
With Application.CommandBars("Standard").Controls.Add
        .FaceId = 3
        .Caption = "&David"
        .Style = msoButtonIconAndCaption
        .OnAction = "HyperionRemove"
End With
 

Watch MrExcel Video

Forum statistics

Threads
1,122,819
Messages
5,598,289
Members
414,223
Latest member
Accountant2B

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top