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
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Thanks...it works now....

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

Forum statistics

Threads
1,214,946
Messages
6,122,401
Members
449,081
Latest member
JAMES KECULAH

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
Back
Top