8220 Remote issues

I had multiple boxes and remotes, and my 8220 remote was reset to factory settings. How can i connect my remote to my cable box. I have tried the swap + A method and it didn't work.