Hi all!
The below code works perfectly, but it takes a very long time for it to do what it needs to do. Is there anything I can do to make it run faster? It's not a massive amount of data, but I am transposing it. I just didn't expect it to take this long to perform, and at it's current state, isn't a viable option.
Any thoughts or recommendations appreciated!
The below code works perfectly, but it takes a very long time for it to do what it needs to do. Is there anything I can do to make it run faster? It's not a massive amount of data, but I am transposing it. I just didn't expect it to take this long to perform, and at it's current state, isn't a viable option.
Any thoughts or recommendations appreciated!
VBA Code:
Private Sub Update_Master()
With Sheets("Main")
Dim FirstEmptyRow As Long
FirstEmptyRow = .Cells(.Rows.Count, "A").End(xlUp).Offset(1, 0).Row
Sheets("Sch_Pricing").Range("B2:M16").Copy
.Cells(FirstEmptyRow, "A").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=True
Sheets("Sch_Pricing").Range("B17:M37").Copy
.Cells(FirstEmptyRow, "FJ").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=True
Sheets("Material").Range("B5:M152").Copy
.Cells(FirstEmptyRow, "R").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=True
Excel.Application.CutCopyMode = False
End With
End Sub