Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello there,
Do you know if it is possible to start a macro from an if statement? For examle, if A1=foo, run macro1. I am trying to hide a few rows when a given information is entered |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Right click on your worksheet tab, select view code and paste this code into
the code window Private Sub Worksheet_Change(ByVal Target As Range) With Target If .Address = "$A$1" And .Value = "foo" Then Call macro1 End With End Sub "Philippe_seattle" wrote: Hello there, Do you know if it is possible to start a macro from an if statement? For examle, if A1=foo, run macro1. I am trying to hide a few rows when a given information is entered |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
If Statement - no idea where to start! | New Users to Excel | |||
Sub Macro vrs Function Macro Auto Start | Excel Discussion (Misc queries) | |||
Macro Start | Excel Discussion (Misc queries) | |||
Start VBA with a macro? | Excel Programming | |||
Start Macro / Stop Macro / Restart Macro | Excel Programming |