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

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
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 ?
 
Upvote 0
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!
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,257
Members
449,075
Latest member
staticfluids

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
Back
Top