Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Why Application.ScreenUpdating code not working

Posted on 2013-01-14
7
Medium Priority
?
563 Views
Last Modified: 2013-01-23
I have the following code in an excel worksheet

Private Sub Show_Hide_Subtotal_Click()
  Application.ScreenUpdating = False
    If Show_Hide_Subtotal.Caption = "Hide Sub-total" Then
        Sheets("Projections").Select
        ActiveSheet.Range("J:J").EntireColumn.Hidden = True
        Show_Hide_Subtotal.Caption = "Show Sub-total"
    Else
       
        Sheets("Projections").Select
        ActiveSheet.Range("J:J").EntireColumn.Hidden = False
        Show_Hide_Subtotal.Caption = "Hide Sub-total"
    End If
    Application.ScreenUpdating = True
End Sub
0
Comment
Question by:Apex623
  • 3
  • 2
6 Comments
 
LVL 49

Expert Comment

by:Martin Liss
ID: 38778410
I have the following code in an excel worksheet
and…?
0
 
LVL 26

Expert Comment

by:redmondb
ID: 38778531
Hi, Apex623.

Your code is working fine for me - please see attached.

In this example, turning off screen updating doesn't make any difference, so i presume that your real version must be doing other things. Please post all the code here.

Thanks,
Brian.ShowHide.xls
0
 
LVL 1

Author Comment

by:Apex623
ID: 38779165
Sorry I meant to say that the Application.Screenupdating is not working.    It shows the sheet being selected and I do not want that to happen.   I have posted the whole spreadsheet that I am working on.    The button that executes the code is on the "Proj. Assumptions" tab.   Thanks for the posts.
Client-Proforma.xlsm
0
Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

 
LVL 26

Accepted Solution

by:
redmondb earned 1600 total points
ID: 38779204
Apex623,

Do you mean that you don't want the "Projections" sheet displayed? If so, then please see the attached.

Regards,
Brian.Client-Proforma-V2.xlsm
0
 
LVL 1

Author Closing Comment

by:Apex623
ID: 38812383
Thanks for your help!
0
 
LVL 26

Expert Comment

by:redmondb
ID: 38812468
Thanks, Apex623!
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
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…

783 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