The limitations will vary by lender. Some lenders allow you to refinance once your home has been off the market for 1 day. Others, as other contributors have mentioned, require longer (3-6 months). But ever lender I know of requires that the home not be listed for sale at the time of the refinance application.
There were also some comments about the maximum loan to value allowed even if removed off the market. FHA allows you to refinance 1 day off of the market for as much as 97.75% of the appraised value. Talk with a few lenders in your area and see what their rules are.... more