Change the color of an Excel Macro button?

D

Dave Peterson

If the button is from the control toolbox toolbar, then click on the design mode
icon (on that same toolbar), rightclick on the commandbutton and select
properties. Look for Backcolor.

If the button is from the Forms toolbar, you can change the font--but not the
backcolor.
 
G

Guest

My next question is can I assign a macro recorded in MS Visual Basic to a
button inserted from the Contron Box Toolbar instead of the Forms Toolbar?

Thanks For your Response.
Jeff
 
B

Bob Phillips

Two things.

You don't assign macros to control toolbox buttons, they have a click event
associated with them (which of course can call a macro).

On the question, if you mean can use VB code in a VBA macro, in principle
yes, although you may need to make small changes. If you mean call the
procedure in a VB executable, that is more difficult. You could wrap it all
in a DLL, link that DLL to your VBA project, and call it from there.

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

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