VBA – Run a Macro from a Macro

Written by

Editorial Team

Reviewed by

Steve Rynearson

Last updated on May 11, 2022

This tutorial will demonstrate how to call a macro from another macro in VBA.

Call a Macro From a Macro

So you just recorded two macros, and you would like to run them as one macro, it’s pretty simple.

Assuming you have Macro1 and Macro2, put this code at the end of Macro1

Sub Macro1 ()
Call Macro2
End Sub

Now every time you run Macro1, Macro2 runs automatically. Macro1 will wait until Macro2 is finished before continuing to run.
To run the macros simultaneously use Application.Run method:

Application.Run

You can also use Application.Run to call a macro.

Sub Macro1 ()
Application.Run Macro2
End Sub

VBA Coding Made Easy

Stop searching for VBA code online. Learn more about AutoMacro – A VBA Code Builder that allows beginners to code procedures from scratch with minimal coding knowledge and with many time-saving features for all users!

alt text

 

Learn More!


<<Return to VBA Examples

vba-free-addin

VBA Code Examples Add-in

Easily access all of the code examples found on our site.

Simply navigate to the menu, click, and the code will be inserted directly into your module. .xlam add-in.

(No installation required!)

Free Download

Return to VBA Code Examples