nathanzumbaugh
New Member
- Joined
- Jan 7, 2009
- Messages
- 9
Would love to paste a range of cells from one sheet to another sheet, but have the qualifier to be the first row available below a named cell.
Here is the code that works well to just paste it to the sheet, but i need to specify where it goes.
-----
Private Sub CommandButton1_Click()
Application.ScreenUpdating = False
Dim copySheet As Worksheet
Dim pasteSheet As Worksheet
Set copySheet = Worksheets("Sheet4")
Set pasteSheet = Worksheets("Sheet3")
copySheet.Range("a3:l3").Copy
pasteSheet.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).PasteSpecial xlPasteValues
Application.CutCopyMode = True
Application.ScreenUpdating = True
End Sub
-----
Want to be able to click the button to make it paste to the first row below cells named "work" as seen in the screenshot.
Here is the code that works well to just paste it to the sheet, but i need to specify where it goes.
-----
Private Sub CommandButton1_Click()
Application.ScreenUpdating = False
Dim copySheet As Worksheet
Dim pasteSheet As Worksheet
Set copySheet = Worksheets("Sheet4")
Set pasteSheet = Worksheets("Sheet3")
copySheet.Range("a3:l3").Copy
pasteSheet.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).PasteSpecial xlPasteValues
Application.CutCopyMode = True
Application.ScreenUpdating = True
End Sub
-----
Want to be able to click the button to make it paste to the first row below cells named "work" as seen in the screenshot.