Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Yes you probably can but no you can't simply call a macro with an if statement. Some cell must change to make C3 switch between "Yes" & "no". so you can use the worksheet change event to fire your macro. Right click your sheet tab, view code and paste this in Private Sub Worksheet_Change(ByVal Target As Range) If Range("C3").Value < "Yes" Then Exit Sub 'do things End Sub Mike "BK523" wrote: I would like to launch a macro from within an "IF" statement. Example: Cell C3 is a "yes / no" type cell. Cell C4 would evaluate the contents of C3 and launch a macro if C3="Yes" Can this be done? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro with sum function | Excel Worksheet Functions | |||
Using macro or other function | Excel Discussion (Misc queries) | |||
Sub Macro vrs Function Macro Auto Start | Excel Discussion (Misc queries) | |||
macro or function | Excel Worksheet Functions | |||
how to count/sum by function/macro to get the number of record to do copy/paste in macro | Excel Programming |