title: VBA, Code runs fine in excel 2010, slow and not responding error in 2013
body: <p>Previously when running my code in 2010 excel version (Version 14.0.7165.5000), it runs in 4 minutes. (however if I run it a second time, it doesnt work)
  When switching to 2013 I get 'excel not responding' or it just excel hangs. 
  The code opens a files from a directory, loads them into my excel sheet and compiles and transforms some data.</p>
  
  <p>I  stepped through the code, seems to get past this part and now excel isnt responding on my given sub sub , specifically at this part,</p>
  
  <pre><code>   'write
      For i = 1 To WorksheetFunction.Min(nRows, UBound(arr, 1))
          For j = 1 To nCols
              If fromTop Then writeVal = arr(i, j) Else writeVal = arr(UBound(arr, 1) - i + 1, j)
              thisWS.Cells(startRow + i - 1, startCol + j - 1).value = writeVal
          Next j
      Next i
  </code></pre>
  
  <p>Does anyone know why this is? Is there some function I am using that works in 2010 but not in 2013? </p>