[Migrated content. Thread originally posted on 19 September 2007]
I have a program that creates an excel spreadshhet.When it has completed the generation of the spreadsheet, the program makes it visible so that the user can then work with it.
What I want to do is allow the excel process to continue, whilst the ACU program completes via an exit program and returns to the menu system.
If I do not 'close' excel in the ACU program, then even when the user completes his activities in Excel by save and exit, or abandon (or whatever method to exit Excel) the excel process continues as a process. At a shutdown it even asks if I want to save 'book1'. Another run of this program creates yet another instance of Excel. This is not helpful.
If I do the 'close' of the excel in the ACU program, the excel sheet disappears - again not very helpful.
If I wait for the user to finish in Excel and he actuaklly chooses to save and exit, I get a failure on the 'Excel close' as I do not know if the process has stopped or not.
I do not really want to save the excel file away and then launch excel as I do not want to create loads of small excel files the user may not need.
Does anyone know the trick I need here?



