cozzagiorgi
New Member
- Joined
- Jun 27, 2018
- Messages
- 41
Hi,
I am working on a (seemingly) simple macro wich should look if my "Tabelle1" is changed. If yes, it should do something. This is my macro, but I get a Runtime error 424, what am I doing wrong?
Thanks for your help!
I am working on a (seemingly) simple macro wich should look if my "Tabelle1" is changed. If yes, it should do something. This is my macro, but I get a Runtime error 424, what am I doing wrong?
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count <> 1 Then Exit Sub
If Not Intersect(Target, ["Tabelle1"[]]) Is Nothing Then
Application.EnableEvents = False
Range("H2").Select
Selection.Copy
Range(Selection, Selection.End(xlDown)).Select
ActiveSheet.Paste
Range("A2").Select
Selection.End(xlDown).Select
End If
Application.EnableEvents = True
End Sub
Thanks for your help!