Starting and Quitting Excel

  • Thread starter Thread starter George
  • Start date Start date
G

George

I've seen questions of how to check if Excel is already running.

If the user has already started Excel normally; call this Excel(User),
then vb.net code runs:
myXL = CreateObject("Excel.application")

Does this new instance of Excel(VB) work completely separate from the
Excel(User)? If yes, why is there a need to check if Excel is running?

When ending the Excel(VB), is there a way to quit this instance and
leave the Excel(User) instance if it's still active?

Thanks,
George
 
* (e-mail address removed) (George) scripsit:
I've seen questions of how to check if Excel is already running.

If the user has already started Excel normally; call this Excel(User),
then vb.net code runs:
myXL = CreateObject("Excel.application")

Does this new instance of Excel(VB) work completely separate from the
Excel(User)? If yes, why is there a need to check if Excel is running?

There is no need to check if excel is running.
When ending the Excel(VB), is there a way to quit this instance and
leave the Excel(User) instance if it's still active?

Did you have a look at the articles about Excel automation at the
Microsoft support site?

HOWTO: Automate Microsoft Excel from Visual Basic .NET
<http://support.microsoft.com/default.aspx?scid=kb;en-us;301982>
 
Back
Top