![]() |
|
#2
|
||||
|
||||
|
Hi ibrahimaa,
You could use a 'Worksheet_SelectionChange' macro like the following in the relevant worksheet's code module: Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
If Target.Address = "$A$3" Then
If Target.Value = 123 Then
Application.EnableEvents = False
'Call your other macro here
Application.EnableEvents = True
End If
End If
End Sub
Code:
Private Sub Worksheet_Calculate()
If ActiveCell.Address = "$A$3" Then
If ActiveCell.Value = 123 Then
Application.EnableEvents = False
'Call your other macro here
Application.EnableEvents = True
End If
End If
End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How do I assign a macro to a button when the macro is in my personal workbook? | foolios | Excel Programming | 2 | 07-27-2011 02:41 PM |