Application.ActiveWindow.View = xlPageBreakPreview Set Workbook = Application.ActiveWorkbook For i = 1 To LastRow If Workbook.Sheets(1).Cells(i, "A").Val