Closed Thread
Results 1 to 6 of 6

userForm as popup message while calculating

  1. #1
    Registered User
    Join Date
    05-05-2009
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2003
    Posts
    97

    userForm as popup message while calculating

    I am building a macro that deals with a lot of data and takes several minutes to run. I want to display a message to the user stating "Calculating..." while the calculating is taking place. I got the idea to use a userForm with a label on it. The problem is that excel waits for input from the userform before continuing the calculations.

    How do I display the userform, continue doing the calculations, and then hide the userform when the calculations are complete? (without any input from the user)

    I currently have:
    Please Login or Register  to view this content.
    Last edited by gtmeloney; 06-03-2009 at 12:33 PM. Reason: forgot some details

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: userForm as popup message while calculating

    The UserForm needs to be displayed modless. In the VB Editor set it's ShowModal property to False.
    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
    05-05-2009
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2003
    Posts
    97

    Re: userForm as popup message while calculating

    Thanks Roy.

    My problem now is that the label doesn't get displayed, rather the userform is white since so much processing is going on in the background (I think). Is there any way around this?

  4. #4
    Registered User
    Join Date
    05-05-2009
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2003
    Posts
    97

    Re: userForm as popup message while calculating

    In case anyone ever reads this: I found a technique that is better suited to what I need. I use the status bar to display a box on each iteration of my loop, indicating to the user that calculations are still being done (and that the system is not hung).

    I found this technique here: http://www.dailydoseofexcel.com/arch.../progress-bar/

    I also found that by setting the status bar, I eliminate Excel's updating of the status bar (which was annoying because I'm doing so many calculations)

  5. #5
    Registered User
    Join Date
    11-02-2011
    Location
    germany
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: userForm as popup message while calculating

    Quote Originally Posted by royUK View Post
    The UserForm needs to be displayed modless. In the VB Editor set it's ShowModal property to False.
    this works with a defect. i wanted to display a pic on the userform, but it didnt show anything, what it gave me was an empty white userform with its caption... do you know how this problem can be solved?

    thanks

  6. #6
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: userForm as popup message while calculating

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.

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