Home |
Search |
Today's Posts |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
to re-size the range
Range("A1").Resize(10,2) then refers to A1:B10 as an example. -- Regards, Tom Ogilvy "Nick" wrote in message ... Hi, After adding Application.ScreenUpdating + Application.Calculation, performance is better, thanks! But, it might be silly, what is the exact function of ReSize method? Nick Tom Ogilvy wrote: Sub Tester1() Dim varr() As String Dim i As Long, j As Long ReDim varr(0 To 5000, 0 To 20) For i = 0 To 5000 For j = 0 To 20 varr(i, j) = i & j 'not static! Next Next Application.ScreenUpdating = False Application.Calculation = xlManual Range("A1").Resize(50001, 21).Value = varr Application.Calculation = xlAutomatic Application.ScreenUpdating = True End Sub took about 20 seconds for me, but most of the time was spend writing to the worksheet. Building the array was almost instantaneous. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Which method is faster | Excel Discussion (Misc queries) | |||
Can faster CPU+larger/faster RAM significantly speed up recalulati | Excel Discussion (Misc queries) | |||
Changing filenames using theSaveAsCopy method | Excel Programming | |||
Which method is faster? | Excel Programming | |||
Changing Calculation Method | Excel Programming |