Results 1 to 3 of 3

Thread: Automation & Excell

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Location
    Posts
    2

    Red face

    I have just converted a program, to input data from a text file into excell. The old method was DDE and the new method I am using is Automation. The problem I am having is that each time I open an instance of excell it will not close even after I declare the excell object to nothing. I have tried tips from Microsofts database but I cannot get the Excell object to close. Any tips or help would be appreciated.

  2. #2
    Guest
    When you set a variable to nothing, all it does is dumps the reference to the excel object, but keeps the process itself running. When using automation you should use the objects destructors or cleanup functions.
    for excel it is

    excelApp.Close

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Location
    Posts
    2
    I actually use objExcell.application.quit
    set objExcell = nothing

    objExcell.application.close is not allowed

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