+ Reply to Thread
Results 1 to 24 of 24

Application.Screenupdating = false not working

  1. #1
    Registered User
    Join Date
    01-23-2014
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    79

    Application.Screenupdating = false not working

    In my macro code and worksheet code I have written application.screenupdating = false but this is not working rather giving me true result at any point in debug mode.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Application.Screenupdating = false not working

    If possible please show your full code


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Application.Screenupdating = false not working

    Please Login or Register  to view this content.
    Does not give or produce any value. It merely stops your screen from flicking while the code is running.

  4. #4
    Registered User
    Join Date
    01-23-2014
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    79

    Re: Application.Screenupdating = false not working

    issue.png
    please find the attached image. The screenupdating is not changing into false

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Application.Screenupdating = false not working

    What is the error message shown before clicking the debug button?

    Can you please enable the Locals Window in View Menu so that we can see what the X is having

  6. #6
    Registered User
    Join Date
    01-23-2014
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    79

    Re: Application.Screenupdating = false not working

    There is no error in the code. i am just trying to say that screenupdating is not updating to false even after passing false value to it.

  7. #7
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Application.Screenupdating = false not working

    Refer Post #3 description once again....

    application.screenupdating = false

    Is jut used to turn off the screen flickering which will make the code to run faster and it is used to speed up the performance of the macro alone

  8. #8
    Registered User
    Join Date
    01-23-2014
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    79

    Re: Application.Screenupdating = false not working

    Yes I totally understand this fact . But screen flickering is there on any cell selection even if target address is different for selection change worksheet event.

  9. #9
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Application.Screenupdating = false not working

    Sorry I am unable to follow you

  10. #10
    Registered User
    Join Date
    01-23-2014
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    79

    Re: Application.Screenupdating = false not working

    I mean I have written a code for Worksheet_selectionchange event. In that code if we select the targeted cell then it will call some macro in it. So every time when I select any cell in that worksheet the screen flickers. So, I need to stop that flickering.

  11. #11
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Application.Screenupdating = false not working

    Sometimes me too experienced that with Worksheet Events but adding that screenupdating = false code made it to flicker even more with the Worksheet Change Event. So I just stopped using screenupdating = false with worksheet events.

    Like you me too don't know the solution for this

  12. #12
    Registered User
    Join Date
    01-23-2014
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    79

    Re: Application.Screenupdating = false not working

    Ok will try to find any solution. Thanks anyways

  13. #13
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Application.Screenupdating = false not working

    Don't worry now I call for all members help for this issue and just wait for some time

  14. #14
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Application.Screenupdating = false not working

    Hi - what is the code in your selectionchange event?

  15. #15
    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,424

    Re: Application.Screenupdating = false not working

    Please post a sample workbook with all the code; no pictures please.

    ScreenUpdating = False doesn't work when you step through the code. I guess the point is, if you're stepping through the code, you want/need to see what effect it is having on the worksheets.

    Regards, TMS
    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


  16. #16
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Application.Screenupdating = false not working

    @ TMShucks - good point.

    You can check if screenupdating is being properly applied using a watch (i.e. if you hover over the property in your code in break mode, it will show as true, in the watch window it will show false) (I think!)

  17. #17
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Application.Screenupdating = false not working

    Just out of curiosity, why this code is creating lot of screen flickering on my screen eventhough the the Screen updating is turned off?

    Please don't suggest Rows("3:18").Delete method I just wanted to show an example...

    Please Login or Register  to view this content.
    Just looking for an answer for this behavior

  18. #18
    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,424

    Re: Application.Screenupdating = false not working

    Because you're making changes in a change event without disabling event handling.

  19. #19
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Application.Screenupdating = false not working

    @ sixthsense, it is because it recursively triggers. So when you delete a row, the change event runs again but as target is not A1 it skips to the end and turns screenupdating on again.

    either disable events or put the screenupdating within the if statement.

  20. #20
    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,424

    Re: Application.Screenupdating = false not working

    At the risk of hijacking this thread, your code should be:

    Please Login or Register  to view this content.

    Regards, TMS

  21. #21
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Application.Screenupdating = false not working

    @ TMShucks & yudlugar,

    Thanks to both for giving solution for my longstanding doubt

  22. #22
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Application.Screenupdating = false not working

    If you will call Application.Screenupdating = True, the screen will redraw even when it does not need to. It is better to only turn off screenupdating when necessary. If you test the Target cell in the code, you may only turn off screenupdating after the test is passed and only turn it back on inside the test block. For example, do not use:
    Please Login or Register  to view this content.
    but use:
    Please Login or Register  to view this content.
    Last edited by Izandol; 01-28-2014 at 07:58 AM.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  23. #23
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Application.Screenupdating = false not working

    @ Izandol,

    Thanks for the brief with sample codes

  24. #24
    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,424

    Re: Application.Screenupdating = false not working

    Thanks for the rep.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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. A problem...
    By Barking_Mad in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-14-2011, 08:07 AM
  2. 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
  3. 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
  4. What can cause application.screenupdating=false to not work?
    By Doh97 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-09-2005, 01:05 PM
  5. 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