H
Hamed parhizkar
I am running an 16 if functions similar to this below:
If Range("C28") > 0 Then
Range("A2334").Select
ActiveSheet.PageSetup.PrintArea = "$A$23:$D$34"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
End If
When I try to run it I get an error saying "Block If without End if"
My very last function ends with:
End If
End Sub
But if I take the end sub out I get an error that reads" Expected end Sub"
???
If Range("C28") > 0 Then
Range("A2334").Select
ActiveSheet.PageSetup.PrintArea = "$A$23:$D$34"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
End If
When I try to run it I get an error saying "Block If without End if"
My very last function ends with:
End If
End Sub
But if I take the end sub out I get an error that reads" Expected end Sub"
???