Running a Macro from within another macro

G

grahammal

Is there a way of calling a macro from within another macro?

Example

Sub Button1_Click()
For a = 1 To 10000
Range("A1") . Value = a
Next a
' Would now like to run the macro which is behind Su
Button2_Click()
End Su
 
P

Peo Sjoblom

Yes,

put the name of the macro within your macro

Sub MyMacro1()
MyMacro2
End Sub

Regards,

Peo Sjoblom
 
Top