You might be able to adapt this macro for your needs:
##Macro Library Paste Horizontal Line (Rich Text)
For more information, see the wiki Searching the Forum for Answers section.