Application.ScreenUpdating = False
Dim ChkRange As Range
Dim cell As Range
Dim Fullnme
Dim Filenme
Range("A6:G300").Select
Selection.clearcontents
Calculate
Sheetnme = Range("E2").Value
Filenme = Range("A2").Value
Fullnme = Range("A1").Value
Workbooks.Open Filename:= _
"H:\" & Fullnme
Sheets("BSVariance").Select
Range("A11:A145").Select
Selection.Copy
Windows("VarianceSummary.xls").Activate
Range("A6").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Windows(Filenme).Activate
Sheets("BSVariance").Select
Range("B11:B145").Select
Selection.Copy
Windows("VarianceSummary.xls").Activate
Range("B6").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Windows(Filenme).Activate
Sheets("BSVariance").Select
Range("G11:G145").Select
Application.CutCopyMode = False
Selection.Copy
Windows("VarianceSummary.xls").Activate
Range("C6").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Windows(Filenme).Activate
Range("L11:L145").Select
Application.CutCopyMode = False
Selection.Copy
Windows("VarianceSummary.xls").Activate
Range("D6").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("A5").Select
Windows(Filenme).Activate
Sheets("PLVariance").Select
Range("A11:A94").Select
Selection.Copy
Windows("VarianceSummary.xls").Activate
Range("a141").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Windows(Filenme).Activate
Sheets("PLVariance").Select
Range("B11:B94").Select
Selection.Copy
Windows("VarianceSummary.xls").Activate
Range("B141").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Windows(Filenme).Activate
Sheets("PLVariance").Select
Range("G11:G94").Select
Selection.Copy
Windows("VarianceSummary.xls").Activate
Range("C141").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Windows(Filenme).Activate
Sheets("PLVariance").Select
Range("L11:L94").Select
Selection.Copy
Windows("VarianceSummary.xls").Activate
Range("D141").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Windows(Filenme).Activate
ActiveWindow.Close
Windows("VarianceSummary.xls").Activate
Range("a5").Select
Set ChkRange = Range("C6:C224")
For Each cell In ChkRange
If cell = "0" Then
cell.EntireRow.Delete
End If
Next
Range("a5").Select
Application.ScreenUpdating = True
End Sub