Results 1 to 10 of 10

VBA code to stop screen from flickering does not work

Threaded View

  1. #1
    Registered User
    Join Date
    11-05-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    10

    VBA code to stop screen from flickering does not work

    Hi there,

    I have no clue why I can't use the "Application.ScreenUpdating = False/True" code on one of my macros. After I add them to the top and bottom of my macro code, the macro does not work anymore. In particular, the select function is removed and the macro is only left with the "ActiveWindow.SmallScroll Down:=-36".

    Here is the macro that does NOT work with the addition of the screen updating code:

    Sub GotoTop_Click()
    Application.ScreenUpdating = False
        ActiveWindow.SmallScroll Down:=-36
        Range("C1").Select
    Application.ScreenUpdating = True
    End Sub
    Here is a macro that worked perfectly alright with the addition of the screen updating code:

    Sub OverallFinancialPerformance_Click()
    Application.ScreenUpdating = False
        ActiveWindow.SmallScroll Down:=25
    Application.ScreenUpdating = True
    End Sub

    Please help!!!! THANKS SO MUCH!

    Moderator's Edit: Use code tags when you post code. To do so (for future use), select your code and click on the # icon above.
    Last edited by arlu1201; 11-05-2012 at 12:12 PM.

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