Can I make a Macro to do this?

I have a number of questions down the page and want to do "insert line > custom" and then hit "set" to create a line that goes from point of insertion to  right margin. But each line is different length. Creating a macro with those commands gives me one that always starts at the same point as when creating macro. But I want one that will use the set point from wherever I start the macro. I'm in WP X7

Can this be done? If so, how?

Parents
No Data
Reply
  • 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

Children