+ Reply to Thread
Results 1 to 8 of 8

Userform frame progress bar for userform completion

  1. #1
    Forum Contributor ABSTRAKTUS's Avatar
    Join Date
    04-18-2010
    Location
    England
    MS-Off Ver
    Win10 Excel 2016
    Posts
    609

    Userform frame progress bar for userform completion

    Hi all,

    Such a simple(!) approach, but can't get my head round it.

    I have a multipage userform with bunch of objects (textboxes, comboboxes etc). User will have to fill in all mandatory fields. I have also got a Frame progress bar on that userform and would like it to indicate userform completion progress as user fills in the values.

    I found this code that activates and runs progress bar, but I want it to only look at one cell, say A1, which will hold a number of already filled in fields. How do I adapt the below code to look at A1?

    Please Login or Register  to view this content.
    Thanks all!

  2. #2
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: Userform frame progress bar for userform completion

    Hi,
    In case you have some cell that contains number of filled objects AND you know Total count of object to be filled - I think you can run just Sub progress.
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor ABSTRAKTUS's Avatar
    Join Date
    04-18-2010
    Location
    England
    MS-Off Ver
    Win10 Excel 2016
    Posts
    609

    Re: Userform frame progress bar for userform completion

    Yes, I do have those numbers. Where do I put this code mate?

  4. #4
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: Userform frame progress bar for userform completion

    Interesting question Your first question sound like you know that to do with it.
    Any chance you could upload file with userform? No data needed, just to see how you collect number of filled controls.

  5. #5
    Forum Contributor ABSTRAKTUS's Avatar
    Join Date
    04-18-2010
    Location
    England
    MS-Off Ver
    Win10 Excel 2016
    Posts
    609

    Re: Userform frame progress bar for userform completion

    I have not yet written the code to return a number of filled controls in A1, just assumed the result would be in A1.

  6. #6
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: Userform frame progress bar for userform completion

    Hm, one way to to this would be recalculate total count of filled controls each time any of them are changed (using _Change invents). And after each recalculation - call progress bar sub.

  7. #7
    Forum Contributor ABSTRAKTUS's Avatar
    Join Date
    04-18-2010
    Location
    England
    MS-Off Ver
    Win10 Excel 2016
    Posts
    609

    Re: Userform frame progress bar for userform completion

    I think I got it running now. The only dilemma now is to get the number of filled in controls...

    See attached.
    Attached Files Attached Files

  8. #8
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: Userform frame progress bar for userform completion

    You could use your ExitFormat routine. As I understood - if Textbox or combobox is filled - color is changed, right?
    So after each ExitFormat you can count how many controls is with specific color.
    1) Added global variable
    Please Login or Register  to view this content.
    2) New Sub to count painted controls
    Please Login or Register  to view this content.
    3) Add red lines in our ExitFormat sub

    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. [SOLVED] Remove 3D frame around userform
    By awc002 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-07-2022, 01:06 PM
  2. [SOLVED] Looping through controls by frame on userform (frame within a frame)
    By njs27 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-27-2015, 10:21 AM
  3. [SOLVED] Showing UserForm to Indicate Progress, Macro Doesn't Run Until I Exit UserForm
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-21-2014, 07:00 PM
  4. Replies: 1
    Last Post: 08-06-2014, 10:29 PM
  5. Header userform auto completion issue
    By djruthless in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-02-2014, 01:56 PM
  6. UserForm exiting prior to completion
    By Ford_Guy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-13-2008, 02:45 PM
  7. UserForm with Frame - Problem
    By Fossil_Rock in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-28-2005, 09:49 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