It's best to be within a reasonable range of around 10 feet from the TV when programming the remote to ensure proper communication.