+ Reply to Thread
Results 1 to 5 of 5

screen updating calling descriptive statistics

  1. #1
    Registered User
    Join Date
    05-26-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    2

    screen updating calling descriptive statistics

    Hi,

    I'm wondering if it's possible to keep the screen from updating when running descriptive statistics in VBA.

    I have several calls to run descriptive statistics in a procedure, and when these get run, the screen always flips to the sheet it's running the statistics on and flickers with each statistical run.

    Is there a way I can keep the screen static, without it flipping back and forth between sheets? I tried using Application.ScreenUpdating = False at the beginning of the procedure without the desired result.

    Here's my descr stats call:

    Application.Run "ATPVBAEN.XLA!Descr", Sheets(ForSheet).Range("$D$" & (KMVGAS_index + 1) & ":$D$" & RLNS_index), Sheets(ForSheet).Range("$" & ColumnLetter & "$" & RowNumber), "C", False, True

    So is it at all possible to get the screen to stay static during these calls?

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: screen updating calling descriptive statistics

    Use this to turn off screen updating and back on again:
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    05-26-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: screen updating calling descriptive statistics

    That doesn't seem to work.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: screen updating calling descriptive statistics

    Sorry, I missed the line where you said you had tried that. My apologies.

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: screen updating calling descriptive statistics

    I agree it doesn't work.

    If it's a major annoyance, you could change the macro to instead enter separate formulas for each of the components, and then (if desired) replace the formulas with their values.
    Entia non sunt multiplicanda sine necessitate

+ 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