I was just involved in a topic similar to this. Check out the macro I posted:
Let me know if you have questions.
For more information, see the wiki Searching the Forum for Answers section.