Creating toolbar with button text

L

Lucas Soler

I've been able to create a macro to add a toolbar, and button, but the button
appears empty. How do I add a title/text to the button.

CommandBars.Add(Name:="EV macro bar2").Visible = True
CommandBars("EV macro bar2").Controls.Add Type:=msoControlButton, ID:=40001,
Before:=1, Parameter:="Macro ""smi_ev_report"""

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top