CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2001
    Posts
    17

    About Excel.Application

    I created a excel.application and also a workbook and worksheet. I get the data from the database and write those data to the excel sheet I created.

    After write, I want to close the application. So I use "Set xlapp=Nothing" to delete the applicaation. But I met a problem: when the data in the excel file is little, I can close the application successfully; while when the data in the excel file is much more, I cann't delete the application, after I run "Set xlapp=Nothing", and then I press "Ctrl+Alt+Del", I still can see the excel process in the process list.

    Who can tell me how can I delete the excel application completely?

    Thank you very much!



  2. #2
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: About Excel.Application

    Tell excel to quit rather than setting the object to nothing. also, you can set the visibility property to true, so you can see what's happening. before quiting, be sure that he sheets and workbook are closed.

    Tom Cannaerts
    [email protected]

    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

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

Featured