I am attempting to write a macro that will automatically determine if certain sheets should print or not and then print several worksheets at once. I get an Block If without If error and a runtime error when attempting to test it. Can anyone advise?

Thanks so much!



Sub PrintSORPrecinct()
'
' PrintSORPrecinct Macro
'


Sheets("SOR - ALL Pg 1").Select
Sheets("SOR - ALL Pg 2").Select
Sheets("SOR - ALL Race 1-2").Select
Sheets("SOR - ALL Race 3-4").Select
Sheets("SOR - ALL Race 5-6").Select
If Sheets("SOR - ALL Race 7-8").Range("U7").Value = "Do Not Print" Then '
Sheets("SOR - ALL Race 7-8 ").Select False
If Sheets("SOR - ALL Race 9-10").Range("U7").Value = "Do Not Print" Then '
Sheets("SOR - ALL Race 9-10").Select False
If Sheets("SOR - ALL Race 11-12").Range("U7").Value = "Do Not Print" Then '
Sheets("SOR - ALL Race 11-12").Select False
If Sheets("SOR - ALL Race 13-14").Range("U7").Value = "Do Not Print" Then '
Sheets("SOR - ALL Race 13-14").Select False
Sheets("SOR - ALL Next to Last Pg").Select
Sheets("SOR - ALL Final Pg").Select

Application.ActivePrinter = "iR-ADV C350 on Ne03:"
ActiveWindow.SelectedSheets.PrintOut Copies:=1
Sheets("SOR - ALL Pg 1").Select
End Sub