File could not be launched because it is being used by another program

Hi Everybody!

Got an issue on one user’s workstation. We’re calling Excel to generate some spreadsheets using Notes data. This application has worked as such for months. Now, all fo the sudden, we get the “File could not be launched because it is being used by another program” when trying to load Excel. The Excel version is 2K. Any ideas what might be causing it?

Here’s a bit of code from one of the agents having a problem:

Set xl=CreateObject("Excel.Application")

xl.visible = True

Set xlWbk=xl.Workbooks.open(filename)

Subject: File could not be launched because it is being used by another program

Has the user rebooted in the last couple of weeks? Check the Task Manager – the spreadsheet may already be open in an invisible instance of Excel left hanging because of an earlier error.