Forum Discussion

fmorel-isnard's avatar
fmorel-isnard
Occasional Contributor
11 years ago

Problem with excel file

Hi,




For my tests I use excel files. To read them, I use the method ExcelDriver like this :


 


Set driverExcel = DDT.ExcelDriver(pathFile,sheet, True)



If my excel file is already open (in read and write) and if i run my test. I get this error :

 


"The Microsoft Access database engine cannot open or write to the file ''. It is already opened exclusively by another user, or you need permission to view and write its data"



If the excel file is open in read-only, of course the error above disappears.

I would like to know if it's possible to run my test with my excel file open in read and write?



Thanks.

  • You can only open the Excel file in read/write mode if it is not already open in write mode.

    I suppose the next question is, what other application has the Excel file open and does it need to be open?