picklefactory
Well-known Member
- Joined
- Jan 28, 2005
- Messages
- 508
- Office Version
- 365
- Platform
- Windows
Hello folks, hoping for some help please?
A bit embarrassing, but then I am a newbie to VBA
I've made a very simple line of code just to empty one cell based on the contents of another....... YES, just one line of code, and I'm still struggling
It works, but I think it is looping or doing something else strange as it crashes Excel when it runs and I have to shut it down, I guess I'm missing something really basic here, but I dunno what I'm afraid.
Help???
Thanks
Code as follows
A bit embarrassing, but then I am a newbie to VBA
I've made a very simple line of code just to empty one cell based on the contents of another....... YES, just one line of code, and I'm still struggling
It works, but I think it is looping or doing something else strange as it crashes Excel when it runs and I have to shut it down, I guess I'm missing something really basic here, but I dunno what I'm afraid.
Help???
Thanks
Code as follows
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Range("F16") = 1 Then Range("J16").ClearContents
End Sub