I am trying and failing to copy a range (AB34:AT34) from the worksheet (Enrolment Form) where the macro is fired from, select another worksheet (Database1), find the first empty cell in column A, and paste special.
[HTML][/Private Sub CommandButton4_Click()
Range("AB34:AT34").Select
Selection.Copy
Worksheets("Database1").Select
Worksheets("Database1").Range("A1").End(xlDown).Row 1
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Worksheets("Enrolment Form").Select
Range("M25").Select
End Sub
[HTML]
Where am I going wrong in what should be an easy coding?
Bookmarks