Hello,
I am wondering if this is possible.
I already am able to detect if an Excel file is open or not.
But I don't know how to get its instantiation so I could close
or do quit-process on it.
To explain further, I have a button which creates an excel file
then save it by its pre-defined filename in a pre-defined path.
This excel file must remain open in order for the user to check
the results in it.
If the same button is clicked, error occurs because the file is
already open. That's why it needs to check if the file-to-be-created
is already open. If so, need to close that file so it could create
a new file with new results.
Can anyone teach me how to do this?
I am wondering if this is possible.
I already am able to detect if an Excel file is open or not.
But I don't know how to get its instantiation so I could close
or do quit-process on it.
To explain further, I have a button which creates an excel file
then save it by its pre-defined filename in a pre-defined path.
This excel file must remain open in order for the user to check
the results in it.
If the same button is clicked, error occurs because the file is
already open. That's why it needs to check if the file-to-be-created
is already open. If so, need to close that file so it could create
a new file with new results.
Can anyone teach me how to do this?