Closed Thread
Results 1 to 4 of 4

Phantom Excel.EXE Process

  1. #1
    Registered User
    Join Date
    02-19-2008
    Posts
    1

    Phantom Excel.EXE Process

    Hi,
    I have an Excel file with user controls. The controls include a couple of drop-down boxes and a button.

    The user makes some selections, then clicks the button. The VBA code in the Click event of the button creates a new Excel.Sheet object as follows:
    Please Login or Register  to view this content.
    This is late binding I guess.


    It does some data populating using ADO & formatting with this newly created object and then saves it.

    At the end of the code, I am closing this object and also setting all the objects to Nothing .

    Once everything is done running, I close the generated excel file and also the main file (which I call the 'User Options' file). I close all instances of Excel. For some reason, there is an EXCEL.EXE process still running in Task Manager. My first guess was that there was memory leak in the code. I have checked the code thoroughly and have not found any leaks.


    Here is the code, in general.

    Please Login or Register  to view this content.

    Can someone please help me figure out why it is leaving the Excel Process running, and what I can do about it?


    Thanks.



    Saad
    Last edited by royUK; 02-19-2008 at 11:59 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Welcome to the Forum. Please read the Forum Rules & use Code tags when posting code.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    06-12-2023
    Location
    Texas
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2305 Build 16.0.16501.20074) 64-bit
    Posts
    1

    Re: Phantom Excel.EXE Process

    I have the same phantom excel process problem, but I have not scripts in excel. I have a power automate flow that opens an excel spreadsheet, adds a row to the bottom of a set or rows, saves then closes excel.

    The first time I run the flow it works great. But, it can't open the workbook again because a phantom process is left over. I can see it in task manager and kill it. Then the flow works again.

    The attached image is a screenshot of the entire flow.

    Attachment 832789

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,583

    Re: Phantom Excel.EXE Process

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1