How to move insert point to the beginning of a paragraph

J

JLee

This seems like it should be a simple thing to do, but I cannot figure out how to move the insert point to the beginning of the current paragraph.

First, I tried to record a macro and simply recorded the [CTRL]+UpArrow key combination. The resulting macro works fine when the cursor is located anywhere in the text of a paragraph of text, but moves the cursor to the previous paragraph if the cursor is already at the beginning of the current paragraph. I need the cursor to work in both cases (that is, position itself at the beginning of the paragraph regardless of its current position). Once the cursor is at the beginning of the paragraph, I want to insert a simple string of text

I am having no success using any of the Move or Collapse methods to move the cursor to the right place. I've tried the InsertBefore method, too, but can't make that method work with a paragraph either. Help
 
J

Jezebel

selection.Paragraphs(1).Range.Select
selection.Collapse


JLee said:
This seems like it should be a simple thing to do, but I cannot figure out
how to move the insert point to the beginning of the current paragraph.
First, I tried to record a macro and simply recorded the [CTRL]+UpArrow
key combination. The resulting macro works fine when the cursor is located
anywhere in the text of a paragraph of text, but moves the cursor to the
previous paragraph if the cursor is already at the beginning of the current
paragraph. I need the cursor to work in both cases (that is, position itself
at the beginning of the paragraph regardless of its current position). Once
the cursor is at the beginning of the paragraph, I want to insert a simple
string of text.
I am having no success using any of the Move or Collapse methods to move
the cursor to the right place. I've tried the InsertBefore method, too, but
can't make that method work with a paragraph either. Help
 
K

Klaus Linke

selection.Paragraphs(1).Range.Select
selection.Collapse

.... or, recording Ctrl+UpArrow with the macro recorder:
Selection.MoveUp Unit:=wdParagraph, Count:=1

Regards,
Klaus
 
K

Klaus Linke

Please ignore my previous message. Didn't read JLee's original post until
after I sent it.

Sorry,
Klaus
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top