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!
 

Some videos you may like

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

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
 

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Threads
1,106,297
Messages
5,510,466
Members
408,791
Latest member
bwirth

This Week's Hot Topics

  • Turn fraction around
    Hello I need to turn a fraction around, for example I have 1/3 but I need to present as 3/1
  • TIme Clock record reformatting to ???
    Hello All, I'd like some help formatting this (Tbl-A)(Loaded via Power Query) [ATTACH type="full" width="511px" alt="PQdata.png"]22252[/ATTACH]...
  • TextBox Match
    hi, I am having a few issues with my code below, what I need it to do is when they enter a value in textbox8 (QTY) either 1,2 or 3 the 3 textboxes...
  • Using Large function based on Multiple Criteria
    Hello, I can't seem to get a Large formula to work based on two criteria's. I can easily get a oldest value based one value, but I'm struggling...
  • Can you check my code please
    Hi, Im going round in circles with a Compil Error End With Without With Here is the code [CODE=rich] Private Sub...
  • Combining 2 pivot tables into 1 chart
    Hello everyone, My question sounds simple but I do not know the answer. I have 2 pivot tables and 2 charts that go with this. However I want to...
Top