Results 1 to 10 of 10

VBA Form Not Unloading / Memory Stuck - How to unload top form correctly

Threaded View

  1. #1
    Forum Contributor
    Join Date
    08-22-2017
    Location
    USA
    MS-Off Ver
    2016 WINDOWS and MAC
    Posts
    294

    VBA Form Not Unloading / Memory Stuck - How to unload top form correctly

    Hi,

    I have had this issue before. I had once thought it was a bug with the QueryClose event class.

    See my post here: https://www.excelforum.com/excel-pro...ose-event.html

    My textbox value in my topmost form is not clearing... because the form is not unloading. DESPITE me explicitly telling the form to unload and hide regardless of where i put that code.

    You will see in the attached example that my form never unloads. When the first form opens, it always re-sets the cell value to "1000" which is correct. However, youll find that after editing the textbox in the second form, reloading the entire process no longer allows the textbox in form 2 to display "1000". It shows what was last entered... because its hanging in memory.


    In my thread from some months ago (above), it was temporarily solved via setting the form object to nothing.

    However, I have had no success this time.

    Some other points:
    I need two forms - no negotiating there, sorry.

    Prefer to have the query close event close the form instead of a dedicated button. I want the X button to close the form.


    Any help is greatly appreciated. Been on this for hours -_-

    Thank you


    *Also posted here:

    https://www.mrexcel.com/forum/excel-...nt-unload.html
    Attached Files Attached Files
    Last edited by ironfelix717; 08-20-2018 at 10:10 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Unloading a Form
    By VBA Fun in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-25-2019, 12:52 AM
  2. Unloading Form Throwing Error
    By Bensley in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-08-2018, 09:40 AM
  3. How to show/hide/unload form when form name is a string variable?
    By achmidt in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-13-2012, 06:21 PM
  4. Unloading Form on clear contents
    By reggie1000 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-20-2009, 11:10 AM
  5. Lose cursor after unloading form
    By andreco in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-12-2008, 03:39 PM
  6. Strange issue freezing parent form when unloading a child form
    By Stefano Gatto in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-11-2005, 12:45 PM
  7. Unloading a form using the ESC key
    By johncassell in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-16-2005, 01:19 PM

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