Call macro from wsheet

ApolloID

Well-known Member
Joined
Jun 8, 2010
Messages
769
Hi, i need to call some macros from wsheet.
I need a macro to look in row A sheet1, and to run macros in a specific order.
Ex:
A.....macro 1......Macro 5......Macro 2....Macro 7
Can this be done?
Thanks!
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

SteveO59L

Well-known Member
Joined
Apr 21, 2004
Messages
7,896
Hi, i need to call some macros from wsheet.
I need a macro to look in row A sheet1, and to run macros in a specific order.
Ex:
A.....macro 1......Macro 5......Macro 2....Macro 7
Can this be done?
Thanks!

A is a column, not a row

What are you looking for ?
 

ApolloID

Well-known Member
Joined
Jun 8, 2010
Messages
769
Yes, sorry. I ment starting from A1.
I can use a macro to call some macros, but i need to add some macros in wbook, and to run just a part of this codes, based on some criteria at some point.
I have a tabele with some informations. If i need to extract only some info, then i will run some macros.
If i need to extract other info from the same sheet, then i will run some other macros.
And it will be easier to select in a row what macros to run.
Can this be done?
Thanks!
 

snowblizz

Well-known Member
Joined
Mar 16, 2009
Messages
1,123
Easy example this will run the macros named in the selected cells
Code:
Sub runMacro()
For Each c In Selection
Run c.Value
Next
End Sub
"Selection" could be replaced with a range if needed.

Code:
Sub runMacro()
For Each c In Range("A1:A10")
Run c.Value
Next
End Sub
 

Watch MrExcel Video

Forum statistics

Threads
1,133,325
Messages
5,658,164
Members
418,430
Latest member
Chlwls808

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top