Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel cell by cell writing.

int ePointer = ir.GetEntryPointer();
Xl.Worksheet sheet =
(Xl.Worksheet)DotNetInsFunctions.xlApp.Worksheets[ir.GetInfo().Sheet];
while(ePointer = 0)
{
Entry e = ir.GetEntry(ePointer);
Xl.Range cell =
(Xl.Range)sheet.Cells[e.row,e.column];
cell.Value2 = e.initValue;
ePointer = ir.GetEntryPointer();
}


In the above code, if the while loop executes for 10,000 cells, it
takes 300sec to write values to 10,000 cells. If I want to do a cell
by cell writing, this is how slow it is performing..
Does anyone know of any other effective and fast way of writing stuff
to sheet in a cell by cell manner.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,344
Default Excel cell by cell writing.

Hi,

where is the data comming from?

Normally we would
For each cell in Range("A1:A10000")
cell = x
Next cell

but there are lots of ways to speed this up depending on where the data is
and where you want to put it.
--
Thanks,
Shane Devenshire


"gutta" wrote:

int ePointer = ir.GetEntryPointer();
Xl.Worksheet sheet =
(Xl.Worksheet)DotNetInsFunctions.xlApp.Worksheets[ir.GetInfo().Sheet];
while(ePointer = 0)
{
Entry e = ir.GetEntry(ePointer);
Xl.Range cell =
(Xl.Range)sheet.Cells[e.row,e.column];
cell.Value2 = e.initValue;
ePointer = ir.GetEntryPointer();
}


In the above code, if the while loop executes for 10,000 cells, it
takes 300sec to write values to 10,000 cells. If I want to do a cell
by cell writing, this is how slow it is performing..
Does anyone know of any other effective and fast way of writing stuff
to sheet in a cell by cell manner.

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
Need sample for reading value from and writing value to cell E53 from outside Excel Tony Bansten Excel Discussion (Misc queries) 1 June 17th 08 07:03 AM
Need sample for reading value from and writing value to cell E53 from outside Excel Tony Bansten Excel Programming 5 June 17th 08 07:03 AM
writing a formular into one cell of an excel sheet Matthias Frohnapfel Excel Programming 3 August 3rd 05 01:03 PM
Writing many lines on a same Excel 2000 cell freeposte Excel Discussion (Misc queries) 2 December 8th 04 02:45 PM
Writing Excel Formula To A Cell Nathan[_4_] Excel Programming 2 June 23rd 04 03:38 PM


All times are GMT +1. The time now is 11:02 PM.

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"