I'm trying to improve the speed with which I find data, copy a row, paste into a different sheet, and replace a value between multiple sheets.
Currently, I am activating each sheet and using cells.Find, but as it's searching through 60k+ rows, this goes extremely slowly or not at all.
Here is the basic process that I"m trying to improve:
Sub UpdateSKU()
'On Error GoTo ErrorCatch
Dim OldSKU As Long
Dim NewSKU As Long
Dim SKUSubset As String
Dim SubsetRange As Range
OldSKU = Sheets("Rollover Request").Range("A2")
NewSKU = Sheets("Rollover Request").Range("B2")
'UPDATE NEW SKU IMPORTER
Sheets("SKU Exporter").Activate
Cells.Find(what:=OldSKU, after:=ActiveCell, LookIn:=xlFormulas, _
Lookat:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Activate
ActiveCell.EntireRow.Copy
Sheets("New SKU Importer").Range("A2").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
Worksheets("New SKU Importer").Columns("A:A").Replace what:=OldSKU, Replacement:=NewSKU, Lookat:=xlPart _
, SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
End Sub
I do this for multiple different sheets in the workbook.
Any help would be greatly appreciated! Thanks!