sujittalukde
Well-known Member
- Joined
- Jun 2, 2007
- Messages
- 520
I am using the following sub, which is running well if run directly:
Now I want this code to fire when the Cell $Y$6 od sheet 1 is changed.
So in sheet 1 code in Worksheet chage event I wrote a macro:
Now when I am changing Cell Y6 of sheet 1, the Sub PickTaxData () is not firing.
Can Someone please help to fix the problem?
regards
Code:
Sub PickTaxData()
'code is doing the work
End Sub
So in sheet 1 code in Worksheet chage event I wrote a macro:
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address <> "$Y$6" Then
Exit Sub
End If
If Target.Address = "$Y$6" Then
Call PickTaxData
End If
End Sub
Now when I am changing Cell Y6 of sheet 1, the Sub PickTaxData () is not firing.
Can Someone please help to fix the problem?
regards