+ Reply to Thread
Results 1 to 5 of 5

Userform as progress bar when unloaded only shows to 40%

  1. #1
    Registered User
    Join Date
    05-02-2018
    Location
    London
    MS-Off Ver
    MS 2013
    Posts
    58

    Userform as progress bar when unloaded only shows to 40%

    Hi all,

    Hoping you can help. I'm using a progress bar and have got it working fine - it goes up to 100% as i require it to, however it doesn't close automatically when it gets to 100%

    To close the progress bar I am using the unload function. However, the progress bar only shows the progress until 40% and then closes.

    I just wondered if there was another way to close the progress bar so that it happens after 100% is shown?

    Thank you

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: Userform as progress bar when unloaded only shows to 40%

    Hard give you specific answer without code or sample workbook.

    Generally speaking, if you are using UserForm.Bar.Width method to show progress...

    You can just check that Bar.Width has reached some set value before Unload is used.

    Ex: When I used pctComl = current/total * 100
    Please Login or Register  to view this content.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Registered User
    Join Date
    06-26-2018
    Location
    USA
    MS-Off Ver
    2016
    Posts
    22

    Re: Userform as progress bar when unloaded only shows to 40%

    Are you using the form.repaint method? Might also toss in DoEvents for good measure.

  4. #4
    Registered User
    Join Date
    05-02-2018
    Location
    London
    MS-Off Ver
    MS 2013
    Posts
    58

    Re: Userform as progress bar when unloaded only shows to 40%

    Thank you, appreciate the help.

    unfortunately can't post code due to sensitivity

    Using the above gives me the same problem. Starting to think that maybe the last bit just executes so quickly that it doesn't have a chance to really update the progress bar

  5. #5
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: Userform as progress bar when unloaded only shows to 40%

    If userform is too slow to display...

    Perhaps you can use alternate method of showing progress using status bar.

    Ex: Originally posted by me in another forum.
    Please Login or Register  to view this content.

+ 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. Can I refer to a textbox value in userform which has already been Unloaded?
    By VAer in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-24-2017, 09:43 AM
  2. VBA code to lock textbox in a userform which was unloaded to from another userform
    By Pimp_mentality in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-23-2016, 12:20 AM
  3. [SOLVED] Can A UserForm Be Partially Unloaded?
    By ScotyB in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-22-2012, 06:23 AM
  4. showing the userform again when userform hasn't been hidden or unloaded
    By stanigator in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-10-2007, 09:33 PM
  5. UserForm from VBA macro is not getting properly unloaded
    By Karve, Ajit in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-08-2005, 05:50 AM
  6. RE: UserForm unloaded still visible
    By Jim Thomlinson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-29-2005, 05:05 PM
  7. UserForm unloaded still visible
    By allenj3 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-29-2005, 05:05 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