Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Export very slow

I have a program that does some moderately serious data manipulation.
Within the code, it reads 3000 lines from a worksheet, summarizes them
into 6 columns, sorts on one of the columns, then populates a text box
with formatted output. This all takes 2-3 seconds.

I then have a simple routine that basically says:

With worksheet("Sheet1")
for i=1 to 600
for j=1 to 6
.cells(i,j)=array(i,j)
next j
next i
end with
end sub

This routine alone takes almost 2 minutes.

Is there a faster way? Seems horribly slow to just fill about 3600
cells with already-calculated values.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Export very slow

With worksheet("Sheet1")
.cells(1,j).Resize(600,6)=array
end with
end sub

should be faster.

--
Regards,
Tom Ogilvy


"Hank Youngerman" wrote:

I have a program that does some moderately serious data manipulation.
Within the code, it reads 3000 lines from a worksheet, summarizes them
into 6 columns, sorts on one of the columns, then populates a text box
with formatted output. This all takes 2-3 seconds.

I then have a simple routine that basically says:

With worksheet("Sheet1")
for i=1 to 600
for j=1 to 6
.cells(i,j)=array(i,j)
next j
next i
end with
end sub

This routine alone takes almost 2 minutes.

Is there a faster way? Seems horribly slow to just fill about 3600
cells with already-calculated values.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Export Excel tuncating leading zeros while export to excel from da RHBKV Setting up and Configuration of Excel 1 July 15th 09 01:48 PM
Chart.Export images are shrinking as I export more images Jared Charts and Charting in Excel 3 January 29th 08 03:23 AM
VERY SLOW Yousoft Excel Discussion (Misc queries) 1 December 11th 07 12:56 PM
export re-order input fields to export file [csv] madisonpete Excel Worksheet Functions 0 November 30th 07 03:51 PM
Slow Excel Navigation with Up / Down Arrow and slow scrolling deddog Excel Discussion (Misc queries) 0 August 14th 07 09:56 PM


All times are GMT +1. The time now is 01:42 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"