Hi Guys,
Second question of the day, I am a complete amateur at this so please bare with me. I've written the below code to copy and paste rows from one sheet to another when a certain value in a cell is found:
It works to a certain extent but it pastes ten of each row it finds into Sheet 1. Could someone tell me where i'm going wrong?
Cheers
D
Second question of the day, I am a complete amateur at this so please bare with me. I've written the below code to copy and paste rows from one sheet to another when a certain value in a cell is found:
Code:
Range("H2").Select
Do Until IsEmpty(ActiveCell)
If ActiveCell.Text = "SS" Then
ActiveCell.EntireRow.Copy
End If
Worksheets("Sheet1").Select
ActiveCell.Offset(1, 0).Select
ActiveSheet.Paste
Worksheets("DATA").Select
ActiveCell.Offset(1, 0).Select
Loop
It works to a certain extent but it pastes ten of each row it finds into Sheet 1. Could someone tell me where i'm going wrong?
Cheers
D