Results 1 to 3 of 3

Thread: Excel Doest quit after operations.

Threaded View

  1. #2
    AO's Filibustier Cheap Scotch Ron's Avatar
    Join Date
    Nov 2008
    Location
    Swamps of Jersey
    Posts
    378
    While not elegant., did you try a brute force kill?
    e.g.

    Process[] procs = Process.GetProcessesByName("EXCEL");
    foreach (Process p in procs)
    {
    int baseAdd = p.MainModule.BaseAddress.ToInt32();
    //oXL is Excel.ApplicationClass object
    if (baseAdd == oXL.Hinstance)
    p.Kill();
    }
    Last edited by Cheap Scotch Ron; November 5th, 2008 at 08:36 PM.

Similar Threads

  1. Creating an Excel query...
    By RebelToTheEnd in forum General Computer Discussions
    Replies: 0
    Last Post: January 11th, 2005, 03:01 PM
  2. Secure Spreadsheets
    By IcSilk in forum Newbie Security Questions
    Replies: 7
    Last Post: July 5th, 2004, 08:23 PM
  3. The history of the Mac line of Operating systems
    By gore in forum Operating Systems
    Replies: 3
    Last Post: March 7th, 2004, 08:02 AM
  4. Explore ways to pass a Microsoft Excel file to the client side
    By NullDevice in forum Programming Security
    Replies: 2
    Last Post: October 15th, 2003, 09:06 PM
  5. Microsoft Excel 2002 Tutorial
    By One Who Watches in forum Other Tutorials Forum
    Replies: 0
    Last Post: July 19th, 2003, 11:50 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
  •