reprogramming key to car after changing battery on 2001 Cadillac Catera

Can I reprogram my key to the car after replacing my battery the car set for a couple of weeks and now my keypad won't unlock the car, I have already replaced the battery in the keylock also

Asked by for the 2001 Cadillac Catera
1 answer 1 comment
if you leave the key in the run position for aprox 15 to 20 mins the key should reprogram itself
Well I have been driving the car so it's been running for more than 15 mins but the keylock still will not work. I have to unlock the car with the key instead of being able to use the buttons on the keypad..