Start a macro when a vlooup formula shows a new value
1. enter the following in a standard module:
Public oldval As Variant
Sub settup()
oldval = Range("A3").Value
End Sub
2. run settup
3. enter the following in the worksheet code area:
Private Sub Worksheet_Calculate()
Dim r As Range
Set r = Range("A3")
If r.Value = oldvalue Then Exit Sub
Call bigmac
oldvalue = r.Value
End Sub
Naturally modify this to use your sub, not bigmac.
--
Gary''s Student - gsnu200814
"Arno" wrote:
Hello,
I have cell A3 with vlookup formula.
Every time a new value is shown in A3 I would like to start /call a macro
automatically in that same worksheet.
Could you please assist with the syntax
Thank you !
Arno
|