Beau the dog
Board Regular
- Joined
- Mar 8, 2021
- Messages
- 72
- Office Version
- 365
- Platform
- Windows
Hi,
New to VBA code and I'm trying to do something I'm sure you guys will find easy.
On my worksheet ("data Input") when cell H4 changes, I want the range in that worksheet (A4:AH4) to automatically copy (as value only) to another worksheet ("Archive2"). Each time this happens, I need it to copy this data on the next available row.
This is my effort...which doesn't work and I'm tired of YouTube now! The first Empty row on the Archive tab starts on A3
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = Range("H4").Address Then
Range("A4:AH4").Copy Sheets("Archive2").Range("A2").End(xlUp).Offset(1, 0)
End If
End Sub
Please help...!
New to VBA code and I'm trying to do something I'm sure you guys will find easy.
On my worksheet ("data Input") when cell H4 changes, I want the range in that worksheet (A4:AH4) to automatically copy (as value only) to another worksheet ("Archive2"). Each time this happens, I need it to copy this data on the next available row.
This is my effort...which doesn't work and I'm tired of YouTube now! The first Empty row on the Archive tab starts on A3
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = Range("H4").Address Then
Range("A4:AH4").Copy Sheets("Archive2").Range("A2").End(xlUp).Offset(1, 0)
End If
End Sub
Please help...!