R
Robert Mark Bram
Hi All!
I want to write a macro to select the current paragraph and transpose it
with the paragraph before.
My problem is finding the command to select the current paragraph - the same
action that occurs on a triple click.
I began with this:
Selection.MoveUp Unit:=wdParagraph, Count:=1
Selection.MoveDown Unit:=wdParagraph, Count:=1, Extend:=wdExtend
but the above is not correct, since if the cursor happens to be at the
beginning of the current paragraph it ends up selecting the paragraph above.
Any advice would be most appreciated!
Rob
I want to write a macro to select the current paragraph and transpose it
with the paragraph before.
My problem is finding the command to select the current paragraph - the same
action that occurs on a triple click.
I began with this:
Selection.MoveUp Unit:=wdParagraph, Count:=1
Selection.MoveDown Unit:=wdParagraph, Count:=1, Extend:=wdExtend
but the above is not correct, since if the cursor happens to be at the
beginning of the current paragraph it ends up selecting the paragraph above.
Any advice would be most appreciated!
Rob