Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Custom button

Status
Not open for further replies.

drimades

IS-IT--Management
Nov 8, 2004
221
MK
I'm using this
Code:
Set cbc = Application.CommandBars("Standard").Controls.Add(Type:=msoControlButton, ID:=..., Temporary:=True)
cbc.OnAction = "YourMacroName"
Set cbc = Nothing

to add a button to the command bar. How can I add some text to that?
 
You can set its Caption property. If not, then use the TooltipText property. But you might want to set its Picture, too.

Steve

[small]"Every program can be reduced by one instruction, and every program has at least one bug. Therefore, any program can be reduced to one instruction which doesn't work." (Object::perlDesignPatterns)[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top