Results 1 to 20 of 20

Controlling Screen flashing using LockWindowUpdate

Threaded View

  1. #1
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Controlling Screen flashing using LockWindowUpdate

    Hi,

    A while back I was assisted with trying to prevent excessive screen flashing...

    I was originally using the Application.ScreenUpdating=False method...but it was still a little jumpy... so Richard Schollar (a valued member in our forum) helped me with this code and it seemed to work...

    Now I am trying to apply it again to another macro and it is not working so well. The thing I found is that on some people's computers it does work well, but not on mine.

    Does anyone know why that is and how I can fix it so it doesn't flash on mine either?

    Private Declare Function LockWindowUpdate Lib "user32" _
      (ByVal hwndLock As Long) As Long
    
    Sub RunProjectUpdate()
    
    LockWindowUpdate Application.Hwnd
    
    
    .....
    
    'You MUST turn it back on at the end!!!:
    
    LockWindowUpdate ByVal 0&   'simply passing a long value of 0 into the function
    
    End Sub
    Thanks for any advice.
    Last edited by NBVC; 12-16-2008 at 09:29 AM.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

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