I just shared a macro I've used for years for a similar purpose. Should get you started.
For more information, see the wiki Searching the Forum for Answers section.