excel vba code - explaination

Posted on 2011-05-09
Last Modified: 2012-05-11

Mostly when we see the programs we the following two lines at the start of e.g a sub,
application.displayalerts = false
application.screenupdating = false

Now I understand that 'displayalerts' = false would cut any display messages
and 'screenupdating' = false means no processing is shown on the screen
does means the cmd window would not be shown? which appears when vba is processing
I an new to VBA and just trying to clear out my logics
It would great if any one could provide me with explanation on it

Question by:SameerMirza
    LVL 85

    Expert Comment

    by:Rory Archibald
    I don't know what you mean by cmd window - I assume you are not talking about a Command window since that has nothing to do with VBA.

    Author Comment

    ok :)
    thats why I am here trying to confirm what it actually doesn/ prevents from appearing on the screen
    LVL 85

    Accepted Solution

    It simply prevents Excel from redrawing the active window so that you don't see cells being updated for example, or switching between worksheets.

    Author Comment

    ok :) thanks alot
    I just wanted to be sure - guess a stupid one but it helps

    Author Closing Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Sometimes we don't want to show zeros in our Excel spreadsheets. This is sometimes most evident in our charts. Look at the chart below, all the zero values are visible. I think that all will agree with the fact that zero values are not looking nice …
    Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
    This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now