I did a bit od seraching on why the formulaarray is slow and found a workaround..with another sub at
http://www.avdf.com/apr98/art_ot003.html
so I change you sub and added the workaround as below:
Sub mirrorRANGE()
Dim rank(1 To 200, 1 To 200) As Single
For rowx = 1 To 200
For colx = 1 To 200
rank(rowx, colx) = Rnd()
Next colx
Next rowx
Call SuperBlastArrayToSheet(rank, Range("rango100"))
End Sub
Workaround sub is as below
Sub SuperBlastArrayToSheet(TheArray As Variant, TheRange As Range)
With TheRange.Parent.Parent 'the workbook the range is in
.Names.Add Name:="wstempdata", RefersToR1C1:=TheArray
With TheRange
.FormulaArray = "=wstempdata"
.Copy
.PasteSpecial Paste:=xlValues
End With
.Names("wstempdata").Delete
End With
End Sub
Bookmarks