To program a 4040L garage door opener, first, locate the "Learn" button on the back of the opener unit. Press and release the "Learn" button, then within 30 seconds, press and hold the button on your remote until the opener lights blink, indicating successful programming. If you’re programming a keypad, enter your desired code and press the "Enter" button, which should also result in a light blink to confirm. For further details, consult the specific manual for your model.