A working macro for something pretty similar is here:
You may have to adapt the macro a bit.
For more information, see the wiki Searching the Forum for Answers section.