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?