This does the trick.
==============================
Application(wp; "WordPerfect"; Default!)
vPW = ?PaperWidth
vMR = ?MarginRight
vP = ?Position
vLen = vPW - vMR - vP
GraphicsLineCreate ()
GraphicsLineLength (vLen)
GraphicsLineHorizontalPosition (Right!)
GraphicsLineEnd (Save!)
Return
=============================
Have the cursor at the end of the text and call the macro.
To assign a macro to a menu item, a toolbar button or a keystroke - please see Barry MacDonnell's notes at
wptoolbox.com/.../EasyPlay.html