Hi All
I've recorded a macro then looped it, but it runs so slowly (takes around 45 minutes to complete). I've got a feeling it's so slow because it has to copy and pastes 12 images (barcodes) 537 times, but is there any way of using different syntax to make it quicker?
Here's the code:
Thanks in advance!
I've recorded a macro then looped it, but it runs so slowly (takes around 45 minutes to complete). I've got a feeling it's so slow because it has to copy and pastes 12 images (barcodes) 537 times, but is there any way of using different syntax to make it quicker?
Here's the code:
Code:
Sub COPY_INSERT()'
' COPY_INSERT Macro
'
'
Let x = 0
Do While x < 537
ActiveCell.Offset(1).Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Offset(-1, 0).Select
Selection.EntireRow.Select
Selection.Copy
Selection.End(xlDown).Select
ActiveCell.Offset(1).Select
Selection.Insert Shift:=xlDown
x = x + 1
Loop
End Sub
Thanks in advance!