The following worked for me 14 months ago when key code failure was at 40% failures. No failures since since.
1. Remove steering column lower cover 4 screws, No. 2 Pozidrive, at an awkward angle. Also some plastic clips which may need prising apart.
2. Identify code receiver which is small yellow or dark cream box.
3. On code receiver locate smaller 3 pole connector, with two outer poles used. This is ring aeriel connector.
4. Disconnect, and reconnect. If at all possible apply electrical contact cleaner, before reconnecting.
5 For good measure repeat procedure with larger 8 pole connector (5 wires connected).
6. Turn on ignition, and hope for cure.
7. Refitting the cover is cuss time. I used a short piece of plastic tube around screw driver shank as a centering aid. Alternative is length of tape wrapped around driver. Remember angle is awkward to judge. Perhaps Blu Tac to keep screw poised on driver.
8. To help others, please post result on this thread.