Chewyhairball
Active Member
- Joined
- Nov 30, 2017
- Messages
- 312
- Office Version
- 365
- Platform
- Windows
[FONT="]Private Sub Worksheet_Change(ByVal Target As Range)[/FONT]
[FONT="]If Not Intersect(Target, Range("A12")) Is Nothing Then[/FONT]
[FONT="] If Range("A12").Value = "Bin1" Then Call ‘my macro’[/FONT]
[FONT="]End If[/FONT]
[FONT="]End Sub[/FONT]
[FONT="]
[/FONT]
[FONT="]Hi[/FONT]
[FONT="]
[/FONT]
[FONT="]I have the above code that triggers ‘my macro’ when the text ‘Bin1’ is entered into cell A12, and it works fine.[/FONT]
[FONT="]
[/FONT]
[FONT="]Is there a way for it to trigger ‘my macro’ if ‘Bin1’ is entered into any cell within the range A12:A1000 and not just A12[/FONT]
[FONT="]
[/FONT]
[FONT="]I don’t need it to trigger if it is entered multiple times, but if i remove all references to ‘bin1’ i would like it to trigger if it entered again.[/FONT]
[FONT="]
[/FONT]
[FONT="]thanks[/FONT]
[FONT="]
[/FONT]
[FONT="]for any help[/FONT]
[FONT="]
[/FONT]
[FONT="]Rory[/FONT]
[FONT="]If Not Intersect(Target, Range("A12")) Is Nothing Then[/FONT]
[FONT="] If Range("A12").Value = "Bin1" Then Call ‘my macro’[/FONT]
[FONT="]End If[/FONT]
[FONT="]End Sub[/FONT]
[FONT="]
[/FONT]
[FONT="]Hi[/FONT]
[FONT="]
[/FONT]
[FONT="]I have the above code that triggers ‘my macro’ when the text ‘Bin1’ is entered into cell A12, and it works fine.[/FONT]
[FONT="]
[/FONT]
[FONT="]Is there a way for it to trigger ‘my macro’ if ‘Bin1’ is entered into any cell within the range A12:A1000 and not just A12[/FONT]
[FONT="]
[/FONT]
[FONT="]I don’t need it to trigger if it is entered multiple times, but if i remove all references to ‘bin1’ i would like it to trigger if it entered again.[/FONT]
[FONT="]
[/FONT]
[FONT="]thanks[/FONT]
[FONT="]
[/FONT]
[FONT="]for any help[/FONT]
[FONT="]
[/FONT]
[FONT="]Rory[/FONT]