Forum Discussion

pjsoconnell's avatar
pjsoconnell
New Contributor
3 years ago

Native Excel Object - How to Close

Hi all,

 

I am using the native Excel object in TestComplete. 

The object has methods for creating, opening and saving files.

However, I am infrequently encountering the following issue when attempting to open an Excel file.

 

 

The file is not being used by another process (Microsoft Excel is not installed on the machine and no other program apart from TestComplete is being used to access the file).

Is it possible to initialize the Excel object, or to close an opened file? As I mentioned above, there does not seem to be a method for closing - only creation, opening and saving.

Any help would be greatly appreciated.

2 Replies