I've just changed both batteries as a matter of course then went out to try reprogramming the key.
turned on ignition and held lock button for approx 10 seconds.
everything appeared to happen as it should. ( car locked then unlocked itself)
Got out of car and locked it with the fob then unlocked it. (yippee it works)
Now it wont lock again unless i reprogramme the key again, its as though its losing its memory somehow.
Russ