I have a vbs script that writes to an Excel spreadsheet. To save the spreadsheet, I need to make sure that it is not open yet. Can anyone suggest a better way to do this?
Some studies:
Any other ideas?
Since the Excel.Application object does not give you access to all instances of Excel, how about using a simple error trap? i.e. if it cannot save the file, throw a warning, save as a different file name, etc.
Source: https://habr.com/ru/post/1768259/More articles:Should tag hierarchies? - taggingHow to implement single sign-on in my java project? - javaIs it possible to specify Mylyn context by default? - javaWhat are the pros and cons of having history tables? - databaseHow to remove space variables in each line of a text file based on a special condition - single-line in Python? - pythonThe input element jQuery.before () and .after () are not working properly, what am I doing wrong? - jqueryTricky MS Access SQL query to remove redundant duplicate records - performanceДобавление дополнительной кнопки к одному объекту в django admin - djangoAdding tasks to a task - google-app-engineJavascript execution through Python - javascriptAll Articles