naturegal27
New Member
- Joined
- Sep 3, 2017
- Messages
- 4
Help!
I have a macro on a button to copy and paste a range into a new worksheet. I need it to add a new line so that every time a user click, a new line of data will be added. Help!
Private Sub CommandButton1_Click()
Application.ScreenUpdating = False
Dim copySheet As Worksheet
Dim pasteSheet As Worksheet
Set copySheet = Worksheets("Final")
Set pasteSheet = Worksheets("Raw Data")
copySheet.Range("Raw").Copy
pasteSheet.Range("A" & Rows.Count).End(xlUp).Offset(1, 0).PasteSpecial xlPasteValues
Application.CutCopyMode = False
Application.ScreenUpdating = True
End Sub
I have a macro on a button to copy and paste a range into a new worksheet. I need it to add a new line so that every time a user click, a new line of data will be added. Help!
Private Sub CommandButton1_Click()
Application.ScreenUpdating = False
Dim copySheet As Worksheet
Dim pasteSheet As Worksheet
Set copySheet = Worksheets("Final")
Set pasteSheet = Worksheets("Raw Data")
copySheet.Range("Raw").Copy
pasteSheet.Range("A" & Rows.Count).End(xlUp).Offset(1, 0).PasteSpecial xlPasteValues
Application.CutCopyMode = False
Application.ScreenUpdating = True
End Sub