+ Reply to Thread
Results 1 to 2 of 2

progress indicator problem

  1. #1
    Registered User
    Join Date
    12-22-2008
    Location
    Sweden
    Posts
    56

    progress indicator problem

    Hi
    I've a INPUT sheet and a RESULT Sheet.
    on the I NPUT sheet there is a button, and when clicked a macro is started putting values into the Result sheet with a loop.

    For the progres sbar I've follows examples using a label control within a userform .

    SO the vb code in teh Button_click Sub is something like this
    Please Login or Register  to view this content.
    THe problem is that when the userform is displayed, I've to press the (x) close button in order for the loop (with i) to continue..

    ANy suggestion how to get this to work?

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,450

    Re: progress indicator problem

    If the button is on the worksheet rather than the userform then the first reference to the userform will cause it to load. And unless you set the ShowModal property to false at design time the form will automatically load as Modal. This means you need to unload the userform before your loop will continue.
    Once it does continue you will have to unload the userform again. And this will repeat until the loop is completed.

    So either set the property at design or load the userform before the loop is entered.
    Also remove the Activate method from the loop.
    Cheers
    Andy
    www.andypope.info

+ Reply to 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