Unfortunately, you and about 80 million other Americans have suffered during this financial mess we've had for the last 5 years.
There is hope. I know of a free program to help get your credit back in shape to buy.
But be aware that some problems can't be fixed quickly. Many require the time for you to pay repeatedly on time to demonstrate that your finances are under control.
Lenders that see lates during the last 12 months won't be able to help you. You don't have to pay off accounts or even pay them down, just pay them on time as agreed, even if that's the minimum payment.
If you have bankruptcy, foreclosure, deed-in-lieu, short sale or other property-related severe distress, the time it takes will be lengthy. Typically, you need 2 to 4 years to recover from these things.