Hey so I have a simple code I am using in excel. office 2010 ran through the code in seconds. 2013, takes forever... the code is really simple, I am including it here.
Sub M72_M73() Dim i, j As Integer Dim minM72, minM73 As Integer Dim minB44 As Double minM72 = ThisWorkbook.ActiveSheet.Cells(72, 13) minM73 = ThisWorkbook.ActiveSheet.Cells(73, 13) minB44 = ThisWorkbook.ActiveSheet.Cells(44, 2) For i = 0 To 100 For j = 0 To 100 Step 5 ThisWorkbook.ActiveSheet.Cells(72, 13) = i / 100 '13 means M ThisWorkbook.ActiveSheet.Cells(73, 13) = j / 100 '13 means M DoEvents If (ThisWorkbook.ActiveSheet.Cells(44, 2) < minB44) Then minM72 = i minM73 = j minB44 = ThisWorkbook.ActiveSheet.Cells(44, 2) End If Next j Next i ThisWorkbook.ActiveSheet.Cells(72, 13) = minM72 / 100 If minM72 = 0 Then For i = 0 To 100 ThisWorkbook.ActiveSheet.Cells(73, 13) = i / 100 DoEvents If (ThisWorkbook.ActiveSheet.Cells(44, 2) < minB44) Then minM73 = i End If Next i End If ThisWorkbook.ActiveSheet.Cells(73, 13) = minM73 / 100 DoEvents End Sub [/CODE]
Any idea why this is taking much much longer in office 2013? I would hate to have to switch back to 2010.
Question
capr
Hey so I have a simple code I am using in excel. office 2010 ran through the code in seconds. 2013, takes forever... the code is really simple, I am including it here.
Any idea why this is taking much much longer in office 2013? I would hate to have to switch back to 2010.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts