Macro Buttons

J

jpx

Does anyone know how I can insert a button into a worksheet and then
have that button, once pressed, execute a macro that I have just
recorded. Thanks.
 
M

Mike Tomasura

This should work if you are using a VB command button.
Just put the name of a macro in the Click sub

Private Sub CommandButton1_Click()
Macro1
End Sub
 

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