When you record steps the code writer records every step as it happens. It does not check to make sure it is logical. So, if you scroll right some and stop and look at the sheet and scroll again, after seeing that where you needed to go is up/down some the the recorder has two scroll ranges one pick-up after the other.
In your case:
ActiveSheet.Protection.AllowEditRanges.Add Title:="Range1", Range:=Range("L11:P65536")
ActiveSheet.Protection.AllowEditRanges.Add Title:="Range2", Range:=Range("U11:Z65536")
And probably the statement before this?
Are chopped up ranges, try something like:
ActiveSheet.Protection.AllowEditRanges.Add Title:="Range1", Range:=Range("L11:P65536", "U11:Z65536")
The Range may also need a sheet reference, like:
ActiveSheet.Range("L11:P65536", "U11:Z65536")
or
Sheets("Sheet1").Range("L11:P65536", "U11:Z65536")