Closed Thread
Results 1 to 5 of 5

Userform refresh not showing

  1. #1
    Registered User
    Join Date
    08-25-2006
    Posts
    30

    Userform refresh not showing

    Hi all,

    I did a bit of searching before posting this and noticed that someone has had a similar problem before but unfortunately that thread did not show a solution.

    Problem is this:

    My macro is called from a command button on a userform. The userform contains 3 command buttons, a label, and an image box with no attached image. When a command button is pressed, the code sets the background colour of the image box to red and changes the label caption to "Processing..". Then screenupdating is set to false, the code runs, screenupdating is set to true, the image turns green and the label says "Ready!".

    The problem is that the userform does not refresh to show the changes until the code is finished running, as though the screen does not update the userform before the "screenupdating" is turned off. Can anyone tell me how to ensure that the forms are displayed correctly before the screenupdating is disabled?

    Cheers!

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good evening Alfaholic

    To force a userform refresh try :

    Please Login or Register  to view this content.
    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Registered User
    Join Date
    08-25-2006
    Posts
    30
    Hah! Success!

    Thanks DominicB, you have solved my problem.

    Cheers!

  4. #4
    Registered User
    Join Date
    10-27-2009
    Location
    Madrid, Spain
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Userform refresh not showing

    I have a similar problem as Alfaholic. But when I try to solve the problem by using

    Please Login or Register  to view this content.
    I receive the following error message: "Compiling error. Could not find the method or data member."
    Maybe I am not using the correct syntax?
    Since I am new to VBA coding, I would appreciate any pointers.
    FYI, I am using Excel 2003 with Visual Basic 6.3.

  5. #5
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile Re: Userform refresh not showing

    Good evening drobles

    ...and welcome to the forum!!

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.

    When you repost supply more information - you might want to state exactly how you are using "Excel 2003 with Visual Basic 6.3". Are you getting the error in VBA or VB6.3? How are you using the command? There is a UserForm involced? etc

    DominicB

Closed 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