Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Running a Macro from within another macro
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 Sub Button2_Click() End Sub -- grahammal ------------------------------------------------------------------------ grahammal's Profile: http://www.excelforum.com/member.php...o&userid=20336 View this thread: http://www.excelforum.com/showthread...hreadid=478781 |
#2
|
|||
|
|||
Running a Macro from within another macro
Yes,
put the name of the macro within your macro Sub MyMacro1() MyMacro2 End Sub Regards, Peo Sjoblom "grahammal" wrote in message ... 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 Sub Button2_Click() End Sub -- grahammal ------------------------------------------------------------------------ grahammal's Profile: http://www.excelforum.com/member.php...o&userid=20336 View this thread: http://www.excelforum.com/showthread...hreadid=478781 |
#3
|
|||
|
|||
Running a Macro from within another macro
Works perfectly. Thanks a million. -- grahammal ------------------------------------------------------------------------ grahammal's Profile: http://www.excelforum.com/member.php...o&userid=20336 View this thread: http://www.excelforum.com/showthread...hreadid=478781 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Closing File Error | Excel Discussion (Misc queries) | |||
Running a macro for each item in an Autofilter list | Excel Discussion (Misc queries) | |||
How to CANCEL file SAVE PROMPT when MACRO is running? | Excel Discussion (Misc queries) | |||
Prevent A Macro From Running If SpreadSheet is Filtered | Excel Worksheet Functions | |||
Shadows of the Pivottable Field List while macro is running | Excel Worksheet Functions |