+ Reply to Thread
Results 1 to 9 of 9

Checkboxes on Userform Cause Flickering

  1. #1
    Forum Contributor
    Join Date
    08-19-2009
    Location
    Netherlands, Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    585

    Checkboxes on Userform Cause Flickering

    Hello all,

    The checkboxes on my userform cause a lot of screen flickering upon opening.
    I tried Application.ScreenUpdating = False, but that didn't work.

    Please Login or Register  to view this content.
    Last edited by Jonathan78; 02-17-2012 at 09:41 AM.

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

    Re: Checkboxes on Userform Cause Flickering

    Do you have any code in the checkboxes events?
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Checkboxes on Userform Cause Flickering

    Do you have any code behind the checkboxes? (eg in their Change events?)
    Good luck.

  4. #4
    Forum Contributor
    Join Date
    08-19-2009
    Location
    Netherlands, Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    585

    Re: Checkboxes on Userform Cause Flickering

    Hello,
    No I do not have any code behind the checkboxes yet

  5. #5
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Checkboxes on Userform Cause Flickering

    Do you have any controls linked directly to cells? At the time the Initialize event fires, the form isn't even visible, so I am not sure what could be causing the flickering. Seeing the workbook might help.

  6. #6
    Forum Contributor
    Join Date
    08-19-2009
    Location
    Netherlands, Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    585

    Re: Checkboxes on Userform Cause Flickering

    I am going to use something like this for the checkboxes:

    Please Login or Register  to view this content.

  7. #7
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Checkboxes on Userform Cause Flickering

    If you already have that code in there, that is the cause - when you set the values of the checkboxes, it is equivalent to clicking them. If you don't want to run that code when loading the form, you need a module level Boolean variable that you set to true, then check that variable in the first line of the checkbox code:

    Top of userform:
    Please Login or Register  to view this content.
    Initialize code:
    Please Login or Register  to view this content.
    CHeckbox code:
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    08-19-2009
    Location
    Netherlands, Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    585

    Re: Checkboxes on Userform Cause Flickering

    Thanks Rory! That worked!

  9. #9
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Checkboxes on Userform Cause Flickering

    Glad to help. Please don't forget to mark the thread solved (see FAQ link at top of the page).

+ 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