Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How can I insert a run macro command in the IF function?
Thank of support. Emil. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Use the call command to run a macro from anywhere in a macro.
i.e. Assume you have a macro called "OtherMacro", that you require running if the contents of a range, called "Answer" is equal to 5:- Sub Example() If Range("Answer").value = 5 then Call OtherMacro End If End Sub |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks millions,
It was very useful for me Emil "Stewart" a scris: Use the call command to run a macro from anywhere in a macro. i.e. Assume you have a macro called "OtherMacro", that you require running if the contents of a range, called "Answer" is equal to 5:- Sub Example() If Range("Answer").value = 5 then Call OtherMacro End If End Sub |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Use the call command to run a macro from anywhere in a macro.
i.e. Assume you have a macro called "OtherMacro", that you require running if the contents of a range, called "Answer" is equal to 5:- Sub Example() If Range("Answer").value = 5 then Call OtherMacro End If End Sub |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Use the call command to run a macro from anywhere in a macro.
i.e. Assume you have a macro called "OtherMacro", that you require running if the contents of a range, called "Answer" is equal to 5:- Sub Example() If Range("Answer").value = 5 then Call OtherMacro End If End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
insert row / insert column command buttons | Excel Worksheet Functions | |||
Insert macro in IF Function | Excel Worksheet Functions | |||
Is it possible to insert a macro command in an "IF" function? | Excel Worksheet Functions | |||
To set up a command that will insert a row, every fifth row? | New Users to Excel | |||
Command Button Function - Macro | Excel Programming |