Every time I implement a new application that involves writing a spreadsheet I seem to ask the following question.
”Is there a way of telling if a spreadsheet of the same name I want to write to is already open (usually by Excel)?”
I know that one possible way is to try and open and write a test file of the same name.
I guess this may work but it always seems unsatisfactory.
Excel itself can tell. Therefore, I wondered if any wise Monk knew how to use Perl to ‘look’ at what Excel uses to get the answer to the ‘is this spreadsheet open’ question.