Results 1 to 35 of 35

Thread: [Resolved] BackgroundWorker - Destroy Excel Instance

Threaded View

  1. #1

    Thread Starter
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429

    Resolved [Resolved] BackgroundWorker - Destroy Excel Instance

    I have the following (snippet) to Create and inastance of Excel from within a BackgroundWorker.

    Code:
                Dim oExcel As Excel.Application = DirectCast(CreateObject("Excel.Application"), Excel.Application)
    After I do the Excel thing, I do:

    Code:
                If IsNothing(oExcel) = False Then
                    oExcel.Quit()
                    oExcel = Nothing
                End If
    Except Excel is still pressent in Task Manager until I close the App????
    (The above code executes)

    Confussed!
    Last edited by Bruce Fox; Jun 5th, 2008 at 05:47 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width