Why did you take the battery out to begin with?
Now for the really easy part, the code can be changed by holding down, shorting out, pressing within 6 seconds, accessing the UDL, shorting out two sets of.................
Of what?
You do not mention the name make nor model.
I am afraid none of us here passed the mind reading course.
Alarm, March 2014