Hi,
I currently have the following code running no problem (just a little slow for my liking). FYI crng is in ws2.
For Each Cell In crng
If Cell.Value = concatenate Then
r = Cell.row
Exit For
End If
Next Cell
If WS2.Cells(r, 8) <> "" Then
WS1.Cells(i, BranCol + x).Value = WS2.Cells(r, 8).Value ' copy new brand
End If
If WS2.Cells(r, 9) <> "" Then
WS1.Cells(i, BranCol + 5 + x).Value = WS2.Cells(r, 9).Value ' copy new manufacturer
End If
But I am looping through thousands of rows and multiple columns and just one column is taking 2 minutes to run.
My questions:
1. Is there a quicker way to search crng?
2. Is there a quicker way to copy the values from ws2 to ws1?
Thanks
I currently have the following code running no problem (just a little slow for my liking). FYI crng is in ws2.
For Each Cell In crng
If Cell.Value = concatenate Then
r = Cell.row
Exit For
End If
Next Cell
If WS2.Cells(r, 8) <> "" Then
WS1.Cells(i, BranCol + x).Value = WS2.Cells(r, 8).Value ' copy new brand
End If
If WS2.Cells(r, 9) <> "" Then
WS1.Cells(i, BranCol + 5 + x).Value = WS2.Cells(r, 9).Value ' copy new manufacturer
End If
But I am looping through thousands of rows and multiple columns and just one column is taking 2 minutes to run.
My questions:
1. Is there a quicker way to search crng?
2. Is there a quicker way to copy the values from ws2 to ws1?
Thanks