Hi Folks,<BR> I use the following code below to check for errors before I save my excel file that I am creating on the client side. I&#039;ve robbed it from another application where its worked fine for hte past year. However I am getting the eror 438 back which has something to do with not selecting a worksheet range. Any help is much appreciated.<BR><BR>on error resume next<BR><BR> duosdoc.sendkeys "%Y"<BR> duosdoc.Worksheets("sheet1").SaveAs "C:Duosfiles" & supplier & "_" & period & "_" & codeout & ".xls", 43<BR><BR> msgbox err<BR> if err &#060;&#062; 0 then<BR> msgbox "An Error Occurred In Creating the Excel Report. Please make sure that the file C:Duosfiles\" & supplier & "_" & period & "_" & codeout & ".xls is not open and press refresh to try again" <BR><BR> Set objFSO = CreateObject("Scripting.FileSystemObject")<BR><BR> duosdoc.Worksheets("sheet1").SaveAs "C:DuosFilesNeil.xls", 43<BR> duosdoc.Workbooks("Neil.xls").close<BR> duosdoc.application.quit<BR> set duosdoc = nothing <BR> objFSO.DeleteFile "C:DuosFilesNeil.xls", True<BR> Set objFSO = Nothing<BR> ReportForm.Actiontaken.value = NULL<BR> <BR> else<BR> <BR> duosdoc.SaveAs "C:Duosfiles" & supplier & "_" & period & "_" & codeout & ".xls", 43<BR><BR>Cheers,<BR><BR>Neil