We help IT Professionals succeed at work.

Application Screen updating

418 Views
Last Modified: 2014-08-12
Hi,

I have a sub below, i have wrapped the sub, but it still shows me bits of what its doing, whereas it should be sticking on the sheet "Pic"

Any suggestions?

I dont want to see any updates.....

Thanks

Sub RunReport()


    Sheets("Pic").Visible = True
    Sheets("Pic").Select
    
    Application.ScreenUpdating = False


    OpenFiles

    ClearSheets
    
    DoTheWork
    
    SaveFiles
    
    Sheets("Pic").Visible = 2
    
    Sheets("Admin").Select
    
    MsgBox "Report is complete and files are saved"
    
Application.ScreenUpdating = True

End Sub

Open in new window

Comment
Watch Question

This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
NorieAnalyst Assistant
CERTIFIED EXPERT

Commented:
If it's what's happening in the subs ebring called that you are seeing it's hard to suggest anything specific without seeing the code in those subs.

Are you selecting/activating anything in those subs?
Andrew VelascoOperational Account Management & Data Analyst

Commented:
You could also try opening your other files first, then setting Screen Updating to false.

Author

Commented:
Hi,

I found the sub, its an old recorded macro that i integrated to the procedure

But at the start of the sub i have

Application.ScreenUpdating = False


Thanks

Sub DoTheWork()


Application.ScreenUpdating = False
    
    Windows("master.xlsm").Activate
    Sheets("Sheet1").Select
    ActiveSheet.UsedRange.Clear
    Windows("MonthlyDownload.xlsx").Activate
    Sheets("Sheet1").Select
    ActiveSheet.UsedRange.Copy
    Windows("master.xlsm").Activate
    Sheets("Sheet1").Select
    Range("A1").Select
    ActiveSheet.Paste
    
    With ActiveSheet
    If .AutoFilterMode = True And .FilterMode = True Then ActiveSheet.ShowAllData
    End With
    

    

    ActiveSheet.Range("$A$1:$G$20000").AutoFilter Field:=3, Criteria1:= _
        "PB Slides English"
    ActiveSheet.Range("$A$1:$G$20000").AutoFilter Field:=7, Criteria1:= _
        "=Expired", Operator:=xlOr, Criteria2:="=Requires Review"
    ActiveSheet.Range("$A$1:$G$20000").AutoFilter Field:=4, Criteria1:="ASP"
    Range("$A$1:$G$20000").Select
    Selection.Copy
    Windows("Asia.xlsm").Activate
    Sheets("PB Review").Select
    Range("A1").Select
    ActiveSheet.Paste
    DateStamp
    Windows("master.xlsm").Activate
    ActiveSheet.Range("$A$1:$G$20000").AutoFilter Field:=4, Criteria1:="EUROPE"
    Range("$A$1:$G$20000").Select
    Application.CutCopyMode = False
    Selection.Copy
    Windows("Europe.xlsm").Activate
    Sheets("PB Review").Select
    Range("A1").Select
    ActiveSheet.Paste
    DateStamp
    Windows("master.xlsm").Activate
    ActiveSheet.Range("$A$1:$G$20000").AutoFilter Field:=4, Criteria1:="LATAM"
    Range("$A$1:$G$20000").Select
    Application.CutCopyMode = False
    Selection.Copy
    Windows("LATAM.xlsm").Activate
    Sheets("PB Review").Select
    Range("A1").Select
    ActiveSheet.Paste
    DateStamp
    Windows("master.xlsm").Activate
    ActiveSheet.Range("$A$1:$G$20000").AutoFilter Field:=4, Criteria1:="ME"
    Range("$A$1:$G$20000").Select
    Application.CutCopyMode = False
    Selection.Copy
    Windows("MENA.xlsm").Activate
    Sheets("PB Review").Select
    Range("A1").Select
    ActiveSheet.Paste
    DateStamp
    Windows("master.xlsm").Activate
    ActiveSheet.Range("$A$1:$G$20000").AutoFilter Field:=4, Criteria1:="NA"
    Range("$A$1:$G$20000").Select
    Application.CutCopyMode = False
    Selection.Copy
    Windows("NA.xlsm").Activate
    Sheets("PB Review").Select
    Range("A1").Select
    ActiveSheet.Paste
    DateStamp
    Windows("master.xlsm").Activate
    Rows("1:1").Select
    Application.CutCopyMode = False
    ActiveSheet.ShowAllData
    ActiveSheet.Range("$A$1:$G$20000").AutoFilter Field:=3, Criteria1:= _
        "PM 2012 CONTENT"
    ActiveSheet.Range("$A$1:$G$20000").AutoFilter Field:=7, Criteria1:= _
        "=Expired", Operator:=xlOr, Criteria2:="=Requires Review"
    ActiveSheet.Range("$A$1:$G$20000").AutoFilter Field:=4, Criteria1:="ASP"
    Range("$A$1:$G$20000").Select
    Selection.Copy
    Windows("Asia.xlsm").Activate
    Sheets("PM Review").Select
    Range("A1").Select
    ActiveSheet.Paste
    Windows("master.xlsm").Activate
    ActiveSheet.Range("$A$1:$G$20000").AutoFilter Field:=4, Criteria1:="EUROPE"
    Range("$A$1:$G$20000").Select
    Application.CutCopyMode = False
    Selection.Copy
    Windows("Europe.xlsm").Activate
    Sheets("PM Review").Select
    Range("A1").Select
    ActiveSheet.Paste
    Windows("master.xlsm").Activate
    ActiveSheet.Range("$A$1:$G$20000").AutoFilter Field:=4, Criteria1:="LATAM"
    Range("$A$1:$G$20000").Select
    Application.CutCopyMode = False
    Selection.Copy
    Windows("LATAM.xlsm").Activate
    Sheets("PM Review").Select
    Range("A1").Select
    ActiveSheet.Paste
    Windows("master.xlsm").Activate
    ActiveSheet.Range("$A$1:$G$20000").AutoFilter Field:=4, Criteria1:="ME"
    Range("$A$1:$G$20000").Select
    Application.CutCopyMode = False
    Selection.Copy
    Windows("MENA.xlsm").Activate
    Sheets("PM Review").Select
    Range("A1").Select
    ActiveSheet.Paste
    Windows("master.xlsm").Activate
    ActiveSheet.Range("$A$1:$G$20000").AutoFilter Field:=4, Criteria1:="NA"
    Range("$A$1:$G$20000").Select
    Application.CutCopyMode = False
    Selection.Copy
    Windows("NA.xlsm").Activate
    Sheets("PM Review").Select
    Range("A1").Select
    ActiveSheet.Paste
    Windows("master.xlsm").Activate
    Sheets("Sheet1").Select
    With ActiveSheet
    If .AutoFilterMode = True And .FilterMode = True Then ActiveSheet.ShowAllData
    End With
    

Open in new window

Author

Commented:
Perfect!

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.