When one door shuts, another opens
when one door shuts, another (one/door) opens
The end of one situation or opportunity is often followed by the start of a new one. Don't worry about not getting this job, honey—when one door shuts, another one opens. I know you're heartbroken, but this isn't the end of the world. After all, when one door shuts, another opens! You've got to bounce back from every deal that doesn't work out in this industry, because when one door shuts, another door opens, and you've got be ready when it does.
When one door shuts, another opens.
Prov. When you lose one opportunity, you often find a different one. Jane: I just found out I'm failing two classes. I'll never get into college with grades like this. Jill: Well, maybe you'll find something better than college. When one door shuts, another opens.