I am accessing one application.Through application one excel file is getting open(not saving it in downloads,directly opening).Now I need to read data from the unsaved excel.Is it possible that without saving the file,can we read the data??I have tried the below code:
Set objExcel = GetObject(,"Excel.Application")
Set objWorkbook = objExcel.WorkBooks("143317473_1.xls")
Set NewSheet = objWorkBook.Sheets.Item(1)
GetValuesFromUnsavedExcelFile = NewSheet.Cells(2, 1)
I am getting error: "Subscript out of Range at line 50".
So,is it necessary to save file before reading it??