It's harder for a variety of reasons to lose weight when you're 40 compared to when you're 20 or 30, but it's definitely do-able, keep that in the front of your mind.
One of the big pluses, you have the benefits of experience, you know what has been successful for you in the past and what hasn't.
best of luck to you