I am using Scott Mitchells article to create spreadsheet based on a query. Now I am pulling lot of rows and columns from the database. This example works fine if number if rows and column is small but gives error -<BR><BR>Microsoft Office Web Components 9.0 error &#039;80070057&#039; <BR><BR>Invalid argument. <BR><BR>/ExcelGen.class.asp, line 65 <BR>when I am retrieving lot of record. The place where its bombing is when records are written in spreadsheet, to be precise Do While Not objRS.EOF<BR> iRow = iRow + 1<BR> iCol = iColOffset<BR><BR><BR> For Each objField in objRS.Fields<BR> If IsNull(objField.Value) then<BR> objSpreadsheet.Cells(iRow, iCol).Value = ""<BR> Else<BR> response.write (objField.value)<BR> objSpreadsheet.Cells(iRow, iCol).Value = objField.Value ***********this is line 65*******<BR> End If<BR><BR> iCol = iCol + 1<BR> Next &#039;objField<BR><BR> objRS.MoveNext <BR> Loop<BR> here is a link to the article<BR>http://www.4guysfromrolla.com/webtech/030701-1.shtml.<BR><BR>any suggestions. I apologize in advance as there is lot of code involved here.