I am using a FOR, NEXT looking, checking through a list of 5,000 names to see if the corresponding cell is populated with any data. if it does it's copying it to another workbook, going back to the original.....etc etc , it seems that doing this check and copying and pasting is taking a substantial amount of time, is there anyway of speeding this up.
This is the main section
This is the main section
Code:
For i = 6 To lastrow
wbo.Activate
If Cells(i, 265) <> "" Then
Cells(i, 265).Copy
wbn.Activate
newlastrow = Cells(Rows.Count, 1).End(xlUp).Row
Cells(newlastrow + 1, 2).Activate
ActiveCell.PasteSpecial xlPasteValues
wbo.Activate
Cells(i, 112).Copy
wbn.Activate
Cells(newlastrow + 1, 1).Activate
ActiveCell.PasteSpecial xlPasteValues
End If
Next i