‎2013 Oct 28 7:16 AM
Hello everyone,
I'm trying to upload the excel and process it using OLE objects, after my transaction completes, when i try to open the excel it gives warning message as file is already open, even after i have used FREE OBJECT method for excel application at end of code. After i open the file i can edit it and save back, but when i re run the same transaction and try to open, it says excel is locked for editing !! Please help me on this, Or Inform any way to open the excel in read only mode.
Regards,
Shankar.
‎2013 Oct 28 7:25 AM
I think while executing the transaction, excel file is opened by code that's why it shows warning message.
Add this code at last and try with it.
CALL METHOD OF
H_EXCEL
'QUIT'.
FREE OBJECT H_EXCEL.
H_EXCEL-HANDLE = -1.
FREE OBJECT H_EXCEL.
‎2013 Oct 28 8:42 AM
Hi Bastin,
It did not work . Can u please tell me the way to open the excel in read mode. So that it wont even lock.
Regards,
Shankar
‎2013 Oct 28 8:59 AM
Hi Shankar Kulkarni,
I have not tried with read mode option