+ Reply to Thread
Results 1 to 19 of 19

Application.Screenupdating = False Is Not Enough !

  1. #1
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Application.Screenupdating = False Is Not Enough !

    .
    There is a severe page / screen flicker when selecting CONTRACT # from the dropdowns on pages :
    MasterData - ABC, MasterData - DEF, MasterData - GHI, in cells : B2, G2, L2.

    The code searches for the contract # from the dropdown from the DATABASE sheet. When located,
    various cells on the sheet are populated.

    The issue is the extreme annoying flicker during the cell populating.

    APPLICATION.SCREENUPDATING is not sufficient to stop this flicker, which leads me to believe the
    culprit is in the coding itself.

    I've run out of ideas.

    Thank you for looking and hopefully finding a solution.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,461

    Re: Application.Screenupdating = False Is Not Enough !

    You should avoid selecting worksheets and ranges. You don't need to select anything in order to operate on it. That would almost certainly avoid the flickering.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Application.Screenupdating = False Is Not Enough !

    I'm not a VBA guy, but would the second call to Application.ScreenUpdating = False (4th line down before Resume Next) cause any anomalies?
    Dave

  4. #4
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Application.Screenupdating = False Is Not Enough !

    .
    Thank you for reviewing ...

    I did remove these lines where ever they appeared but that did not stop the flickering :

    Sheet4.Activate
    Sheet4.Range("B2").Select

    I've used Application.Screenupdating = False only once at the top of the code and Application.Screenupdating only once at the bottom.
    Still no success.

    ????

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,461

    Re: Application.Screenupdating = False Is Not Enough !

    Untested, but stuff like this

    Please Login or Register  to view this content.
    Could be this

    Please Login or Register  to view this content.

  6. #6
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Application.Screenupdating = False Is Not Enough !

    .

    TMS ... tried your suggestion. No go.


    Thought this would do but no ...

    Please Login or Register  to view this content.

  7. #7
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Application.Screenupdating = False Is Not Enough !

    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  8. #8
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Application.Screenupdating = False Is Not Enough !

    .
    bakerman

    Thank you for contributing.

    I edited just the first part of the macro to see it work. Regretfully, it is not copying the data and pasting as needed.

    Here is what I did :

    Please Login or Register  to view this content.

  9. #9
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Application.Screenupdating = False Is Not Enough !

    I doubt it would help but maybe try an API solution?

    If things go amiss when testing an API solution, closing Excel and/or rebooting may be needed.

    e.g.
    In a Module:
    Please Login or Register  to view this content.
    Test the 2 methods in same Module or another:
    Please Login or Register  to view this content.

  10. #10
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Application.Screenupdating = False Is Not Enough !

    .
    Kenneth

    Thank you for your interest.

    I am unable to follow an API approach. But I do thank you !

  11. #11
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Application.Screenupdating = False Is Not Enough !

    That's because all your SrchStrng are returning empty strings due to the merged cells.

    Loop through your code using F8 and you'll see.

    Unmerge all cells, remove Datavalidation. Then merge cells back and add Datavalidation.

    Problem solved.
    Last edited by bakerman2; 02-22-2019 at 11:32 PM.

  12. #12
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Application.Screenupdating = False Is Not Enough !

    .
    Thanks bakerman2


    I followed your instructions to unmerge, remove Datavalidation, etc.

    Then this is how I implemented the suggested code :

    Please Login or Register  to view this content.
    What have I done wrong ?

    Note: the sheet name is MasterData-ABC.
    Last edited by Logit; 02-22-2019 at 11:46 PM.

  13. #13
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Application.Screenupdating = False Is Not Enough !

    Something with the sheetname I guess because when I do this it works.
    Please Login or Register  to view this content.

  14. #14
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Application.Screenupdating = False Is Not Enough !

    No screen flicker anymore.
    Please Login or Register  to view this content.

  15. #15
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Application.Screenupdating = False Is Not Enough !

    .
    Please Login or Register  to view this content.

    My copy of the workbook is not cooperating ...

  16. #16
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Application.Screenupdating = False Is Not Enough !

    .
    Disregard.

    Your second post works fabulously !

    Thank you so much bakeman2 !

  17. #17
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Application.Screenupdating = False Is Not Enough !

    .
    Thank you everyone for your assistance !

    It is very much appreciated.

    Cheers and good evening.

  18. #18
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Application.Screenupdating = False Is Not Enough !

    Glad you got it working.

    Thanks for rep+. Much appreciated.

  19. #19
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,461

    Re: Application.Screenupdating = False Is Not Enough !

    You're welcome. Thanks for the rep.

+ 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. Application.ScreenUpdating = False
    By Gero92 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-30-2018, 03:27 AM
  2. Application.ScreenUpdating = False
    By Gero92 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-30-2018, 02:34 AM
  3. Application.Screenupdating = false not working
    By tanvi_kalra in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 01-30-2014, 09:55 AM
  4. Application.ScreenUpdating = False. A problem...
    By Barking_Mad in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-14-2011, 08:07 AM
  5. Application.screenupdating = False is not working
    By gnome_core in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-15-2009, 03:32 PM
  6. How to set Application.ScreenUpdating = False for Gen use
    By David_Williams_PG () in forum Excel General
    Replies: 1
    Last Post: 08-15-2006, 07:10 AM
  7. Using the Application.ScreenUpdating = False?
    By Susan Hayes in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-29-2005, 12:06 AM

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