Finally got around to posting the macro, which has been working reliably:
For more information, see the wiki Searching the Forum for Answers section.