hello,
I have some issue with below code...what it does is when b1>A1 then it continously runs macro BUYBEAN..what I want is to run only one time..till there is change in value in A1 and B1
I have some issue with below code...what it does is when b1>A1 then it continously runs macro BUYBEAN..what I want is to run only one time..till there is change in value in A1 and B1
Code:
Private Sub Worksheet_Calculate()
On Error GoTo ws_exit
Application.EnableEvents = False
If Range("b1") > Range("A1") Then
Call BUYBEAN
Else
Call SELLBEAN
End If
ws_exit:
Application.EnableEvents = True
End Sub