2

Is there a way to create a button in Excel to trigger a Macro. So say I have a button that says "Start" that I can click to start a Macro instead of using a hotkey.

2 Answers 2

7

If you use the 'Forms' toolbar, you will be able to draw a button and assign a macro to it. See here for details.

Sign up to request clarification or add additional context in comments.

1 Comment

Sometimes I use the controls as shown in the document, but when things get complex, the controls have problems. I use more and more the technique described here
3

Go into the VBA IDE (by clicking to edit your macro or similar). On the left hand side, right click your project, do Insert,User Form. Drag a command button over from the tools, double click it to generate an event handler.

Fill in the code and run the macro to display the form.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.