Animalised
New Member
- Joined
- Apr 24, 2016
- Messages
- 31
Good Evening,
I'm trying to find a cell range, copy the information from that range and paste it into another tab. This is my code so far:
I'm not sure what I could do to make it work as nothing seems to happen.
Any help would be greatly appreciated!
I'm trying to find a cell range, copy the information from that range and paste it into another tab. This is my code so far:
Code:
Private Sub CommandButton1_Click()
Sheets("Summary").Select
' Find "C4" cell of data
If ThisValue = "PB" Then
Range(Cells(4, 2), Cells(4, 8)).Copy
Sheets("Peter Beardsall").Select
Cells(4, 2).Select
ActiveCell.EntireRow.Insert
Cells(NextRow, 1).Select
ActiveSheet.Paste
Sheets("Summary").Select
ElseIf ThisValue = "ND" Then
Range(Cells(4, 2), Cells(4, 8)).Copy
Sheets("Nick Dyson").Select
Cells(4, 2).Select
ActiveCell.EntireRow.Insert
Cells(NextRow, 1).Select
ActiveSheet.Paste
Sheets("Summary").Select
End If
End Sub
I'm not sure what I could do to make it work as nothing seems to happen.
Any help would be greatly appreciated!