
Now this is weird because I'm using CreateObject("Excel.Application") and not GetObject(, "Excel.Application") When I open any other Excel file they're both also become a single instance!!! And the original file (opened by the script) becomes visible!.When I manually open the file (while it's open by the script) they're both become a single instance.I think the problem is somehow related to the Excel instances, I tried to do the following (while the file is open by the script): Now, what I want to do is to open the Excel file using a way that locks the file and prevents the user from opening it while it's open by the script (until it's closed). so I'm using this code: Set objXLApp = CreateObject("Excel.Application")


I'm working on a VBScript that opens an Excel file and modify a few stuff in it. I have a simple question, but I've searched for this and couldn't find any helpful topics.
