Probably the best way to create a horizontal line/rule in Apple Pages, is to use Pages' native tools.
See Pages for Mac: Add borders and rules (lines)
Also, I have just posted a macro that should work in most rich text apps (but NOT Pages and MS Word):