+ Reply to Thread
Results 1 to 4 of 4

How do I change a userform while calculations are ongoing.

  1. #1
    Registered User
    Join Date
    04-27-2013
    Location
    Bradenton,florida
    MS-Off Ver
    Excel 2007
    Posts
    40

    How do I change a userform while calculations are ongoing.

    I have written a form based application which interactively allows a user to set up a model puzzle. The structure is entirely form based. After all the setup is done the user may activate an algorithm to solve the puzzle. This algorithm may take many minutes to run. I would like to be able to update the user, as to what is happening, while the processing is going on. Thank you very much for any suggestions or help you can provide.

    Joe

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: How do I change a userform while calculations are ongoing.

    How about using the Status Bar

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-27-2013
    Location
    Bradenton,florida
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: How do I change a userform while calculations are ongoing.

    I am sure that will work - Thank you very much.
    I was hoping there would be a way to either initiate a new form or using the current form change it as the algorithm is processing.
    Do some processing update "label" in current form.
    Again Thank you very much.

  4. #4
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: How do I change a userform while calculations are ongoing.

    Try this and see if you prefer it

    Open the file, enable macros and click on Run

    (The VBA contains a loop to simulate your code running)
    At various stages in the code (here at the end of each loop)
    - the code writes a status update to cell A1
    - the UserForm is refreshed by being re-initialized
    - TextBox1 takes the latest value from cell A1

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. Userform calculations
    By forquaidian in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-09-2015, 04:51 AM
  2. [SOLVED] UserForm Calculations
    By Jietoh in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-10-2013, 01:29 PM
  3. Can I do Calculations in a VBA UserForm or do I have to use a Sheet.
    By Muttrunner in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-09-2013, 03:07 PM
  4. [SOLVED] calculations inside userform
    By cfinch100 in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 12-26-2012, 04:55 PM
  5. Calculations in UserForm - Need Help
    By chester.stevenson1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-28-2011, 03:33 PM
  6. Userform calculations
    By Geordie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-11-2010, 09:24 AM
  7. userform calculations in textbox
    By jsmity in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-04-2007, 07:36 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