![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Apr 2002
Location: Alberta, Canada
Posts: 50
|
I know this has been mentioned other times, but I can't find it by searching. What VB code do I put in to run one macro with another macro?
|
|
|
|
|
|
#2 |
|
Legend
Join Date: Feb 2002
Location: Minneapolis, Mn, USA
Posts: 9,704
|
One of three ways:
To run myMcr put one of the following lines of code in your macro myMcr call myMcr application.run("myMcr") Hope this helps. _________________ Cheers, NateO "Me no are no nice guy." [ This Message was edited by: NateO on 2002-04-25 12:39 ] |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Apr 2002
Location: Alberta, Canada
Posts: 50
|
I am trying to run a macro in a module from a form macro, but the form macro says it can't find the module macro. any reason why? Do I have to put all my macros into the form?
|
|
|
|
|
|
#4 |
|
Legend
Join Date: Feb 2002
Location: Minneapolis, Mn, USA
Posts: 9,704
|
You should be able to run it with:
Code:
Application.Run ("myMcr")
_________________ Cheers, NateO [ This Message was edited by: NateO on 2002-04-25 16:25 ] |
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Apr 2002
Location: Alberta, Canada
Posts: 50
|
Application.Run ("Cancel_Click")
-the macro associated with this item says it can't find the macro Cancel_Click (runt time error 1004) Private Sub Cancel_Click() End End Sub -here is the macro cancel click |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|