HI. So I am using a loop to move data from one sheet to another but there are 3 sheets in all. I need it to look up each sheet before it moves data over to only paste in a blank cell.
Currently my macro is as follows
Rc = 2
For p = 1 To 3
For i = 5 To 3000
With Sheets("Data")
If Sheets("Data").Range("A" & i).Value = "" Then GoTo next_i
If Sheets("Data").Range("M" & i).Value = Sheets("Lookup").Range("P" & p).Value Then
Worksheets(Sheets("Data").Range("M" & i).Value).Range("A" & Rc).Value = Sheets("Data").Range("A" & i).Value
However I want Rc to be the end of the row on the individual tabs as the information is always in different rows.
Please help!!!
Currently my macro is as follows
Rc = 2
For p = 1 To 3
For i = 5 To 3000
With Sheets("Data")
If Sheets("Data").Range("A" & i).Value = "" Then GoTo next_i
If Sheets("Data").Range("M" & i).Value = Sheets("Lookup").Range("P" & p).Value Then
Worksheets(Sheets("Data").Range("M" & i).Value).Range("A" & Rc).Value = Sheets("Data").Range("A" & i).Value
However I want Rc to be the end of the row on the individual tabs as the information is always in different rows.
Please help!!!