The following code works fine but i would like to make an adjustment. This may be simple to some but i can not grasp how. Data is in F5:F50. When F5:F50 is refreshed this data is placed in column Y. However i would the next refresh of F5:F50 to be placed in column Z then AA and so on.
I hope this makes sense and any help would be much appreciated. Thank you.
I hope this makes sense and any help would be much appreciated. Thank you.
Code:
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Columns.Count <> 16 Then Exit Sub
Range("F5:F50").Copy
Range("Y5").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
Application.EnableEvents = False
Range("F5:F50").Copy
Range("Y5").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
Application.EnableEvents = True
End Sub