Hello folks,
I have a visual basic macro running in excel. It performs all of the calculations in about 2 seconds but takes 20 seconds to send the data to excel to update an xy plot.
I pass the info with a loop like this..
for i = 1 to 1000
Worksheets("output"
.Cells(i+1,1)=the_array(i)
Worksheets("output"
.Cells(i+1,2)=another_array(i)
Next i
Is there another way to do this that might be faster?
Is the fact that the output is linked to a xy plot what slows it down? If so, is there a way to keep the chart from updating its view until all of the data is passed?
Thanks
I have a visual basic macro running in excel. It performs all of the calculations in about 2 seconds but takes 20 seconds to send the data to excel to update an xy plot.
I pass the info with a loop like this..
for i = 1 to 1000
Worksheets("output"
Worksheets("output"
Next i
Is there another way to do this that might be faster?
Is the fact that the output is linked to a xy plot what slows it down? If so, is there a way to keep the chart from updating its view until all of the data is passed?
Thanks