CustomX
CustomX

Reputation: 10113

Excel macro - open macro without going into Visual Basic?

I've finished my macro! But is there an easier way in runnning it?

I know two ways

Is there an easier way, or are these the only two ways?

Thanks

Upvotes: 3

Views: 496

Answers (3)

Bek Raupov
Bek Raupov

Reputation: 3777

you can even create little smiley icon in your Toolbar so that it stays there and you can run it by clicking it or have shortcut keys attached to it.

Upvotes: 3

Place a command button on your sheet, view its code in the VB editor, and edit it so it looks something like this:

Private Sub CommandButton1_Click()
    Call MyMacro
End Sub

You can then just click your button every time you want to run your macro.

Upvotes: 5

Related Questions