+ Reply to Thread
Results 1 to 4 of 4

ScreenUpdating = false: more than once in the same sub()???

  1. #1
    Registered User
    Join Date
    05-27-2008
    Posts
    2

    ScreenUpdating = false: more than once in the same sub()???

    I would like to turn off/on the ScreenUpdating MULTIPLE TIMES in the same sub since there are certain updates I need to see, but not others.
    I ran a debug on the code and it seems that once it is set to True, it can not be set to false again in the same sub.
    I wonder if there is a way to do it.
    Thanks!

    Mike

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Mike,

    Welcome to the Forum!

    I have never had that problem before in turning the screen updating on and off. Can you post your workbook for review?

    Sincerely,
    Leith Ross

  3. #3
    Forum Contributor
    Join Date
    12-12-2006
    Location
    New Zealand
    Posts
    151
    Hi Mike,

    This little sub should prove that you can turn screenupdating off/on as much as you want.

    Please Login or Register  to view this content.
    As leith says posts your code and we may be able to help further.
    Reafidy.

    Tip: When using code and disabling events/screen updates/calculation be sure to use an error handler to turn them back on if an error occurs.

  4. #4
    Registered User
    Join Date
    05-27-2008
    Posts
    2

    ScreenUpdate can be turned On/Off multiple times in the same Sub.

    Dear Reafidy and Leith:

    Thank you so much for helping me out.
    I am trying to copy a live data from one sheet to another and don't like the flickering screen.
    As you said, the ScreenUpdate can be turned off/on multiple times (your code is a good way to check the status). Since the screen is still flickering, I went back to check the code and found an error: the final sheet needs to be activated before turning on the ScreenUpdate. Then after the screenupdate is turned on, it needs to be activated again to get the update.
    Now it seems fine (still flash a little).
    Again, all your help is highly appreciated!

    Best,
    Mike



    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Please Login or Register  to view this content.
    Last edited by VBA Noob; 07-25-2008 at 02:45 PM.

+ 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