Consulting

Results 1 to 4 of 4

Thread: Regarding Application.ScreenUpdating=False

  1. #1

    Regarding Application.ScreenUpdating=False

    I just discovered that I don?t understand what ?Application.ScreenUpdating = False? does.

    When I executed the following macro:
    [vba]Sub TestScreenUpdating
    Range(?A1?) = ??
    Application.ScreenUpdating = False
    Range(?A1?) = ?ABC?
    Stop
    End Sub[/vba]
    then looked at cell ?A1?, I saw ?ABC?. Since I stopped the execution of the macro (i.e., it was still active), shouldn?t I see a blank in ?A1???

  2. #2
    VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    It just keeps the screen from flickering back and forth between actions that might be in different locations on the sheet. Has nothing to do with the rest of the code.
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  3. #3
    VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    Didn't you get an error on stop?
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  4. #4
    No error occurred . . . what did I do to cause an error??

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •