Ark68
Well-known Member
- Joined
- Mar 23, 2004
- Messages
- 4,564
- Office Version
- 365
- 2016
- Platform
- Windows
I use this code to trigger code when the user changes the value in a particular cell (B6):
Is this option doable? I have tried and am not getting any trigger when the user enters a value in cell K9. It's either because it's inappropriate, or I'm not following through properly.
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$B$6" Then
... do code ...
End if
End Sub
Is this option doable? I have tried and am not getting any trigger when the user enters a value in cell K9. It's either because it's inappropriate, or I'm not following through properly.
Code:
Private Sub Worksheet_BeforeUpdate(ByVal Target As Range, ByVal Cancel As MSForms.ReturnBoolean)
If Target.Address = "$K$9" Then
Stop
... do code when user enters a value in K9 ...
End If
End Sub