RBS,
If you start your workbook from the scheduler using "Excel myworkbook.xls"
you have to control the entire workbook exectution from within
myworkbook.xls. As you stated this includes shutting it down.
This makes it very hard to debug and change without setting various flags
and conditions, or using a state machine. You don't want the application to
start up, do its work, and then immediately shut down. You will need a
chance to set a break point. It is always beneficial for a developer to
actually watch the program execution to ensure that the behavior she is
expecting is actually happening.
But wait there's more...
There is a link on that blog post that goes to another post where I played
around with your suggested method. I was figuring out how to automate remote
workbook execution so that I could run my workbooks on a compute grid. It
seemed like the obvious answer, but running an Excel workbook in an automated
fashion has a lot of caveats, read this post:
http://krgreenlee.blogspot.com/2006/03/digipede-distributing-excel_10.html
for work arounds.
The main problem with automating Excel is that Excel is designed to have the
GUI up and running. This is Microsoft's take on Excel automation:
http://support.microsoft.com/kb/257757/, which basically says, "Don't do it."
By using an Excel Controller, you can set all the flags you need to set
BEFORE you open Excel so that you can stop Excel from doing anything
"GUIish". This technique also runs Excel in the background, in another
instance, so it is less likely to interfere with an already running instance
of Excel...say one that a user is currenty working in.
Hope that helps,
Kim Greenlee