I have a macro, it's not an especially well written macro, but it works. It involves a lot of copy and pasting within a spreadsheet with lots of necessary COUNTIFand INDEX/MATCH formulas.
I run the macro at work and at home on my new computer.
The thing is, this macro runs, literally, twice as fast on my inferior computer at work. I've added in a timer to the macro to measure performance to back this up.
Work PC - Intel i3-3220 3.3GHz - 2 cores - 4GB RAM.
Home PC - AMD Ryzen 1700X 3.8 GHz - 16 cores - 16GB RAM.
I'm so confused, how can a far inferior computer be so much quicker? I should also point out I'm running Excel 2013 on both computers too, x64 version at home, x32 at work.
I've even overclocked my home computer, and checked the Advanced settings within Excel (Enable mutli threaded Calculation).
Is my problem with the code? (I can't see how it would be) How does one get the most out of processing power within Excel?
Many thanks on any thoughts or comments.
I run the macro at work and at home on my new computer.
The thing is, this macro runs, literally, twice as fast on my inferior computer at work. I've added in a timer to the macro to measure performance to back this up.
Work PC - Intel i3-3220 3.3GHz - 2 cores - 4GB RAM.
Home PC - AMD Ryzen 1700X 3.8 GHz - 16 cores - 16GB RAM.
I'm so confused, how can a far inferior computer be so much quicker? I should also point out I'm running Excel 2013 on both computers too, x64 version at home, x32 at work.
I've even overclocked my home computer, and checked the Advanced settings within Excel (Enable mutli threaded Calculation).
Is my problem with the code? (I can't see how it would be) How does one get the most out of processing power within Excel?
Many thanks on any thoughts or comments.
Code:
Sub Home()
Sheets("Home Raffle").Select
Range("AO1:AO2").Select
Application.CutCopyMode = False
Selection.Copy
Range("AP1").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
StartHome:
Sheets("Home Raffle").Select
Columns("AJ:AK").Select
Selection.ClearContents
Range("AG1:AH1").Select
Selection.Copy
Do
Range("AJ101").Select
Selection.End(xlUp).Select
ActiveCell.Offset(1, 0).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
If Sheets("Home Raffle").Range("AH5") > 0.5 Then
Sheets("Home Raffle").Select
Columns("AJ:AK").Select
Selection.ClearContents
GoTo StartHome
Else
'Do Nothing
End If
Loop Until Range("AH3") = "All Picked"
End Sub