VenkataRanga
11 years agoOccasional Contributor
Runtime Error when opening and closing Excel Spreadsheet continuously
Dear All,
When I executing my project, I get intermittent runtime errors when opening and closing Excel Spreadsheet continuously. Below code I am using.
set xlobj= Sys.OleObject("Excel.Application")
Set workbookObj=xlobj.Workbooks.Open(Project.Path + "\Data_Input\Data_Input.xlsx")
Set wrksheetObjtest1=workbookObj.Worksheets(SheetName)
I saw a thread with same issue created in long back ago( http://smartbear.com/forums/f74/t53094/runtime-error-opening-excel-spreadsheet/ ) .
Thanks in advance!
.
When I executing my project, I get intermittent runtime errors when opening and closing Excel Spreadsheet continuously. Below code I am using.
set xlobj= Sys.OleObject("Excel.Application")
Set workbookObj=xlobj.Workbooks.Open(Project.Path + "\Data_Input\Data_Input.xlsx")
Set wrksheetObjtest1=workbookObj.Worksheets(SheetName)
I saw a thread with same issue created in long back ago( http://smartbear.com/forums/f74/t53094/runtime-error-opening-excel-spreadsheet/ ) .
Thanks in advance!
.