FryGirl
Well-known Member
- Joined
- Nov 11, 2008
- Messages
- 1,368
- Office Version
- 365
- 2016
- Platform
- Windows
How can I change this to apply to multiple cells at once? Right now this will change "A" when I enter something in "B", but what if I select multiple contiguous cells like B2:B10 and then I want A2:A10 to equal "IN".
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
If Target.Value <> "" Then Range("A" & Target.Row).Value = "IN"
Application.EnableEvents = True
End Sub