That is because "Range("AA:AE").EntireColumn.Hidden" returns Boolean values of TRUE or FALSE.
Not TRUE equals FALSE, and Not FALSE equals TRUE.
But the possible values of "ActiveSheet.PageSetup.Orientation" are "xlPortrait" and "xlLandscape".
Those are NOT boolean values. Not "xlPotrait" does not equate to "xlLandscape", or vice versa.