Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

OLE Objects

Former Member
0 Likes
525

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.

3 REPLIES 3
Read only

bastinvinoth
Contributor
0 Likes
445

Hi Shankar Kulkarni

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.

Read only

0 Likes
445

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

Read only

0 Likes
445

Hi Shankar Kulkarni,

I have not tried with read mode option  

Check this threads  Clemens reply maybe helpful for you.

Amit mittal answer