https://www.manualslib.com > ... > Owner's manual
Sanyo FWSB415E Manual Online: connect and set up, Position The Soundbar, Wall Mount The Soundbar(Optional). This Section Helps You Connect Your Soundbar To ...
It can't be done, they are not reprogrammable, not universal.
universal remote codes for Sanyo tv with Instructions
Brand
Code
SANYO
0049 0097 0110 0004 0268 0012 0108 0180
You did not post the model number but if the unit uses pushbuttons on the actual set, the carbon coating on the inside of the switch pad is flaking off and causing problems. You may be able to remove it and clean it up and it would be fine, you may have to use a new coating on the buttons though.
Check the remote control for its infrared emission. Check it with fresh batteries. If you wish to get more details about how to check a remote control, please visit this site. One among the posts has details about it.
https://electronicshelponline.blogspot.com/https://elektrotricks.blogspot.com/https://electrohelponline.blogspot.com/https://remotesearch.blogspot.com/
One among the posts has details about how to check a remote control. Search the site by type in the brand name of your set, in its search bar at the right side column, and press enter. See it in desktop computer or b Webview by mobile. Mobile View has no search box.