syndee
New Member
- Joined
- Jan 14, 2017
- Messages
- 18
Have workbook that does everything I want but flickers when I open it. I have Screen updating. false but still flickers. Maybe it's normal, just thought I'd ask.
Code:
Private Sub Workbook_Open()
Application.ScreenUpdating = False
Workbooks.Open (ThisWorkbook.Path & "\Accrual Report.csv")
Range("A1:I10000").Select
Selection.Copy
Range("A1").Select
Windows("Control File.xlsm").Activate
Sheets("Accrual").Select
Range("A1:I10000").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=True, Transpose:=False
Range("A1").Select
Workbooks.Open (ThisWorkbook.Path & "\Canada Validation Report.csv")
Range("A1:E2000").Select
Selection.Copy
Range("A1").Select
Windows("Control File.xlsm").Activate
Sheets("Canada Validation").Select
Range("A1:E2000").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=True, Transpose:=False
Range("A1").Select
Workbooks("Accrual Report.csv").Close
Application.DisplayAlerts = False
Workbooks("Canada Validation Report.csv").Close
Application.DisplayAlerts = False
Sheets("Export").Select
Range("A1:I1").Select
Selection.AutoFilter
Range("A1").Select
ActiveSheet.Range("$A$1:$I$2000").AutoFilter Field:=1, Criteria1:="<>0", _
Operator:=xlAnd
Range("A1:I2001").Select
Selection.Copy
Range("A1").Select
Workbooks.Add
Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:=xlNone, SkipBlanks _
:=True, Transpose:=False
Range("A1").Select
Application.CutCopyMode = False
ActiveWorkbook.SaveAs Filename:= _
(ThisWorkbook.Path & "\Time Off Import.csv"), _
FileFormat:=xlCSV, CreateBackup:=False
ActiveWindow.Close
Application.ScreenUpdating = True
Windows("Control File.xlsm").Activate
Sheets("Export").Select
End Sub
Last edited by a moderator: