Oddly enough, I made a similar macro just yesterday for someone. Perhaps it might be of interest to you.
For more information, see the wiki Searching the Forum for Answers section.