It still seems to print the Summary sheet, but I still get this error, I noticed that all of my sheets except for sheet named “_†are unhidden, which makes me think the print code is not completing its cycle.
I thought since the error was referring to protection, I then removed the sheet protection and unhide Summary sheet and then ran the code, but again same error.
Here is the code I am using
Code: Select all
Dim wssheet As Worksheet
Application.ScreenUpdating = False
For Each wssheet In ActiveWorkbook.Worksheets
If Not wssheet.Name = "_" Then wssheet.Visible = xlSheetVisible
Next wssheet
If CheckBox1.Value = True Then Sheets("Cover Page").Select Replace:=True
If CheckBox2.Value = True Then Sheets("Client Information").Select Replace:=False
If CheckBox3.Value = True Then Sheets("Utilities").Select Replace:=False
If CheckBox4.Value = True Then Sheets("Grounds").Select Replace:=False
If CheckBox5.Value = True Then Sheets("Structure and Exterior").Select Replace:=False
If CheckBox6.Value = True Then Sheets("Garage").Select Replace:=False
If CheckBox7.Value = True Then Sheets("Roof").Select Replace:=False
If CheckBox8.Value = True Then Sheets("Fireplace and Attic").Select Replace:=False
If CheckBox9.Value = True Then Sheets("Bedroom(s)").Select Replace:=False
If CheckBox10.Value = True Then Sheets("Bathroom(s)").Select Replace:=False
If CheckBox11.Value = True Then Sheets("Interior").Select Replace:=False
If CheckBox12.Value = True Then Sheets("Kitchen").Select Replace:=False
If CheckBox13.Value = True Then Sheets("Kitchen Appliances").Select Replace:=False
If CheckBox14.Value = True Then Sheets("Heating and Cooling").Select Replace:=False
If CheckBox15.Value = True Then Sheets("Water Heater").Select Replace:=False
If CheckBox16.Value = True Then Sheets("Pool Spa").Select Replace:=False
If CheckBox17.Value = True Then Sheets("Summary").Select Replace:=False
If CheckBox18.Value = True Then Sheets("Additional Photos").Select Replace:=False
ActiveWindow.SelectedSheets.PrintOut
For Each wssheet In ActiveWorkbook.Worksheets
If Not wssheet.Name = "_" Then wssheet.Visible = xlSheetHidden
Next wssheet
Application.ScreenUpdating = True