Not knowing what car it is, try these.
1)Lock central locking if poss with spare key then try unlocking with original key. (to reset code)
2) if battery was out of unit for too long then your key may need resetting with correct code by manufacturer.
3) check you replaced it with correct battery CR2025 or CR2016 x2 (Renault)
If the key fob still flashes but car C/L not working still, is it the correct fob for the car? just a thought!
volvoman999, June 2010