A:Answer You don't "program" the remote to control the soundbar, there is no "remote code" to enter into the H8F's remote.
The soundbar needs to be HDMI-ARC connected to the H8F (HDMI1 on the H8F, and an HDMI2,0 port on the soundbar).
HDMI Control needs to be enabled in both devices, ARC Audio needs to be enabled on the H8F.
Then, the H8F remote will automatically raise/lower/mute volume on the soundbar, via HDMI-ARC/CEC; not via a "code."
If the soundbar is connected via optical audio or analog audio, then the H8F remote will never control it. In this case, if the soundbar has its own remote, there might be a control code to get the soundbar remote to exert some measure of control over the H8F. That control, if possible, will likely be incomplete and disappointing, if not frustrating.
Good luck.