+ Reply to Thread
Results 1 to 6 of 6

Userform Stalls when jumping from one form to another

  1. #1
    Registered User
    Join Date
    08-08-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    23

    Userform Stalls when jumping from one form to another

    Working with a project that utilized multiple userforms for data entry and form completion. I have used command buttons to jump back and forth between forms. Generally, the form works fine, but occasionally it will stall. Ctrl+break highlights the uf####.show as the stop point whenever it stalls. Here is the sample code used jumping back and forth between userforms.
    Please Login or Register  to view this content.
    I found some references to where showing a form from within a form is bad practice, but haven't found a better way to accomplish what I want. I can't unload the forms because I need to keep the information as I jump back and forth.

  2. #2
    Forum Contributor
    Join Date
    09-24-2013
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2007
    Posts
    128

    Re: Userform Stalls when jumping from one form to another

    Do you think a multi page userform would work for you?

  3. #3
    Registered User
    Join Date
    08-08-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    23
    I don't think it would work because of the majority of the users limited knowledge with excel. I built the program to work as a step by step process and didn't think the multi-page was intuitive enough. The main form has 5 different sections that all lead to different forms.
    Sorry for the long winded reply.

  4. #4
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Userform Stalls when jumping from one form to another

    Have you tried declaring the information that you need in the form of a variable as part of the userform initialize procedure. After you have the variables and associated data stored in the second userform you can unload the first. If you have to keep going back and forth between the 2 then you should either make it 1 form or structure it differently

  5. #5
    Registered User
    Join Date
    08-08-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    23
    No I haven't, I need to be able to adjust the information on the fly. I'm just using the userform to auto-populate forms that I have generated in excel. But to the everyday user, excel is completely hidden and the only things they see are the userforms. The excel formats I have generated are a strict military forms that I've recreated in excel.

  6. #6
    Registered User
    Join Date
    08-08-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Userform Stalls when jumping from one form to another

    I was able to solve the userform stalling issue. I isolated the problem to utilizing the "X" to close a form. My initial code was a UserForm_Terminate Sub to control what happened for this situation. I adjusted all of my code to:
    Please Login or Register  to view this content.
    I haven't experience a single freeze/stall since. Hope someone can find this fix useful.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 6
    Last Post: 10-28-2009, 09:28 PM
  2. Macro stalls when worksheet shared
    By nigelog in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-13-2009, 07:44 AM
  3. VBA Script in Excel Stalls Out On It's Own After Opening Secondary Excel File
    By SilentThunder in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-19-2005, 06:05 PM
  4. [SOLVED] Activating userform and filling it with data form row where userform is activate
    By Marthijn Beusekom via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-06-2005, 01:06 PM
  5. [SOLVED] VB Form vs VBA UserForm problems...
    By R Avery in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-22-2005, 08:29 AM

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