Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have to gather a lot of records from Oracle. I have a loop that is pulling
1 record an that is doing calculation with an array(1 to number of records for that record, 1 to number of records for that record). It was going well but I found out that some data from previous calculation were still in the array. So I decided to initialize the array for each loop before going to another record. Dim x As Integer Dim y As Integer For x = 10 To totalOfRowsCellsArray For y = 1 To totalOfRowsCellsArray cellsArray(x, y) = 0 Next Next Generally totalOfRowsCellsArray = 10. Without that function, it takes 7 minutes to calculate 1000 records. By adding that function it took me 1hr. Why???after all it's in the memory. I tried with redim and its slow, I tried with Erase and its very slow too. Please help if you know why. Thanks Jack |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Pls confirm 2007 chart redraw is up to 10 times slower than 2003 | Charts and Charting in Excel | |||
macros making files slower and slower | Excel Discussion (Misc queries) | |||
VBA Function gets slower every time I use it... | Excel Programming | |||
Excel gets slower and slower.... | Excel Programming | |||
ExcelXP 10 times slower than 2000 on web queries. | Excel Programming |