The instructions will vary based on the type of TV that you have. Here is the link to a remote programming tool that will help you select the right combination of remote and TV.
To use the tool simply match what your remote looks like to the picture. Then click the dropdown menu to select the appropriate make of your TV. After you have selected the TV make you will see the right set of remote codes for your TV as well as a link with instructions on how to enter that code.