I have the Excel Object Library 9.0 added as a reference. It blows up as soon as it gets into the for loop. It gives me an error 1004: Cells Method of _Application object failed. <br><br>I know there is data in my recordset, rs_regid. Here's the code:<br><br><br>Dim ExcelSheet As excel.Application<br>Set ExcelSheet = New excel.Application<br>rs_regid.MoveFirst<br>For k = 1 To rs_regid.RecordCount<br> With ExcelSheet.Application<br> .Cells(k, 1).Value = rs_regid("reg_id"
<br> .Cells(k, 2).Value = rs_regid("fname"
<br> .Cells(k, 3).Value = rs_regid("lname"
<br> .Cells(k, 4).Value = rs_regid("mi"
<br> .Cells(k, 5).Value = rs_regid("degree"
<br> End With<br>Next<br><br>MsgBox CurDir<br><br>datestmp = Format(Now, "m/d/yy"
<br>slashpos = InStr(1, datestmp, "/"
<br>sufmonth = Left(datestmp, slashpos - 1)<br>sufyear = Right(datestmp, 2)<br><br>ExcelSheet.SaveAs CurDir & "\spreadsheets\faxsht" & Trim(sufmonth) & Trim(sufyear)<br>ExcelSheet.Application.Quit<br>Set ExcelSheet = Nothing<br><br><br><br><br>PLEASE HELP ME