I'm using the code below to copy data entered into a table into another larger database in another sheet (original question and information on my worksheets here).
For Each cl In Sheet2.Range("A8:A23")
If Not IsEmpty(cl.Value) Then
With Worksheets("Database")
.Cells(.Rows.Count, "A").End(xlUp).Offset(1, 0).Resize(1, 18).Value = cl.Resize(1, 18).Value
End With
End If
Next
This has been working great so far, however I've recently added another 2 columns of data into the data entry sheet (Row S & T). I need these new columns to also be pasted into the new sheet when the command button is pressed, but not into columns S & T - I want them to be pasted into columns AL & AM.
Any ideas how best to do this?
Any help much appreciated.