I have to create a program that opens Excel as hidden, launches a spreadsheet, and then waits a little bit and makes Excel visible. This seems like it should be easy, but excel will always be running code, because it asks for some user input.
The first thing that I tried was declaring xl, opening the spreadsheet, then waiting a little bit and making xl visible. This did not work because I never got the control back to my program, since xl kept churning.
The second thing that I tried was launching the spreadsheet from a shell hidden. The problem was that I don't know how to find that xl that just opened to make it visible. There could be multiple Excel sessions open (all with the same caption, so that does me no good).
Does anyone have any ideas?
Thanks.
The first thing that I tried was declaring xl, opening the spreadsheet, then waiting a little bit and making xl visible. This did not work because I never got the control back to my program, since xl kept churning.
The second thing that I tried was launching the spreadsheet from a shell hidden. The problem was that I don't know how to find that xl that just opened to make it visible. There could be multiple Excel sessions open (all with the same caption, so that does me no good).
Does anyone have any ideas?
Thanks.