Check if Excel File is open
Afficher commentaires plus anciens
I am doing a read/write to an excel file. In order to do the write, I want to check if the file is already open somewhere else in case I need to close it. How can I do this?
Thank you!
Réponse acceptée
Plus de réponses (1)
Paulo Silva
le 7 Avr 2011
FListOpen=fopen('all'); %get the names of the open files
ismember('myfile',FListOpen) %see if myfile is open
Catégories
En savoir plus sur Spreadsheets dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!