Beruflich Dokumente
Kultur Dokumente
com
1 million calculations
Introduction Click here to send your comments Run the Macro
Sometimes there are too many formulas in a workbook and it takes an eternity to run. It is time to use the big weapons the
variable of the VARIANT type..
The VBA procedure within this workbook enter 50,000 numbers chosen at random between 1 and 235 in column A of the
sheet "Results" and then executes 1,000,000 calculations in less than 5 seconds following the calculation rules presented
on the sheet "Calculation Rules".
I have used this approach to validate the format of millions of data that the Chase Manhattan Bank wanted to transfer from
one database to another.
5 in column A of the
ation rules presented
' First declare a variable of the type variant in which will be loaded the table
Dim varData As Variant
' A counter
Dim varCounter As Double
' I create the VARIANT variable including 21 columns and 50,000 rows
shResults.Select
varData = shResults.Range("A1", Range("A1").Offset(49999, 20))
Next
Column B A*3
Purchase and download the 35
Column C B/6 Excel tutorials and a printable
Column D C*10 book for
Column E C+D $49.00
Column F E+1,000 Click Here
Column G F*7
Column H G/2
Column I G+H
Column J I/3
Column K J*2
Column L K*6
Column M L+345
Column N M/2
Column O N-276
Column P O*5
Column Q P-876
Column R -Q
Column S R*34
Column T S*2
Column U T/S