is there a "tidier" way to do this? My macro continues with 10 mehr blocks like these.
And is it possible, to delete more than one cell? If i delete more then one cell it doesn't replace the empty ones.
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("P9:P381")) Is Nothing Then
If IsEmpty(Target) = True Then
Range("P8").Select
Selection.Copy
Range("P" & Target.Row).Select
ActiveSheet.Paste
Application.CutCopyMode = False
End If
End If
If Not Intersect(Target, Range("R9:R381")) Is Nothing Then
If IsEmpty(Target) = True Then
Range("R8").Select
Selection.Copy
Range("R" & Target.Row).Select
ActiveSheet.Paste
Application.CutCopyMode = False
End If
End If
I'm a beginner in vba, i'm sure you will notice this.
Thank you in advance.