Programming my Honda CR-V 1999

Because I can’t lock the door with the key in the ignition I am not able to program the keyless entry. Can anyone help in this endeavor?