Calling a Macro within a Macro

  • Thread starter Thread starter William
  • Start date Start date
W

William

I recently received 2 excellant VBA macros from this group. I want to
select one of these macros to run within an existing macro. How do I
merge or integrate a macro into existing code?
Help will be greatly appreciated. Wm
 
I recently received 2 excellant VBA macros from this group. I want to
select one of these macros to run within an existing macro. How do I
merge or integrate a macro into existing code?
Help will be greatly appreciated. Wm
 
Call Macro1 from Macro2 as follows:

Sub Macro2()
'optional code
Macro1
'optional code
End Sub

Hth,
Merjet
 
Back
Top