+ Reply to Thread
Results 1 to 10 of 10

Progress bar for loading Userform

  1. #1
    Registered User
    Join Date
    01-25-2013
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    2

    Progress bar for loading Userform

    I have created a Excel userform. Since it has lot of controls, it takes good amount of time to load.

    Is there a possibility of displaying a progress bar till the userform is loaded.

    Google search has shown me ways to create a progress bar using Excel Forms. However, I am looking for a way to show the progress bar till the main userform is loaded.

    Thanks

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Progress bar for loading Userform

    Can you upload an example workbook?

    Click on GO ADVANCED and use the paperclip icon to open the upload window.
    If posting code please use code tags, see here.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Progress bar for loading Userform

    Hi,

    Create a new user form which contains just two controls, one control that's set to the maximum width of the progress bar and the other which is overlaid on the top and whose width is set every time you add another control to your main form. If you are using a looping macro to load the controls than you can easily add an instruction to set the width each iteration through the loop. If you are adding controls from a long list in VBA then you'll need to have a line to set the progress bar width each time.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    01-25-2013
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Progress bar for loading Userform

    I am able to create the progress bar. On standalone basis... the progress bar Macro is running.

    What I am looking is a way to "start the progress bar when I initiate the userform and finish it when my userform loads completely".

  5. #5
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Progress bar for loading Userform

    Are these controls being added at run time? How many controls does your userform have that there is a noticeable delay in loading?
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  6. #6
    Valued Forum Contributor
    Join Date
    03-22-2013
    Location
    Australia,NSW, Wirrimbi
    MS-Off Ver
    Excel 2013
    Posts
    1,057

    Re: Progress bar for loading Userform


  7. #7
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: Progress bar for loading Userform

    The problem is knowing how long it takes to load your userform.
    Heres a progress bar that you can set a time for it to run.
    If you call the progress bar first and you can call the userform within the timer procedure.
    you will just need to set your time and also put some code in to show completed once loaded.
    Attached Files Attached Files
    Regards
    Sean

    Please add to my reputation if you think i helped
    (click on the star below the post)
    Mark threads as "Solved" if you have your answer
    (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code:
    [code] Your code here [code]
    Please supply a workbook containing example Data:
    It makes its easier to answer your problem & saves time!

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Progress bar for loading Userform

    Quote Originally Posted by idinuv View Post
    I am able to create the progress bar. On standalone basis... the progress bar Macro is running.

    What I am looking is a way to "start the progress bar when I initiate the userform and finish it when my userform loads completely".
    Yes I realise that which is why I suggested that you create a new form which will contain the progress bar (or use the one you have) and which is loaded immediately you initialise the controls form. You'll probably need to set the modal property of both to False.

  9. #9
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Progress bar for loading Userform

    Hello idinuv,

    As reported by apo: "Crosspost: http://www.ozgrid.com/forum/showthread.php?t=189156"

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

    Regards.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  10. #10
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Progress bar for loading Userform

    What is it that's making the userform slow to load?

    Do you have code that's populating controls on the form?

    If you do can you post it, or even better attach a sample workbook.

+ 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. Progress bar Based on data Loading
    By laxmanann in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-01-2014, 06:28 AM
  2. Loading userform
    By tian0020 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-17-2007, 01:57 AM
  3. [SOLVED] Loading a Userform
    By Jason Zischke in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-13-2006, 04:40 AM
  4. [SOLVED] Loading website from userform
    By Danny Boy via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-29-2006, 12:15 PM
  5. Loading Userform
    By Steven Cheng in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-09-2005, 03:20 PM

Tags for this Thread

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