Moving to the end of a paragarph with vba

T

Tim

I have written some code which opens MS Word from access
and inserts data from an Access query at a specific
bookmark in the word document. I then want to insert two
blank lines and insert some standard text. It then loops
to pick up another text string to insert at the bookmark.
My code works well except that if the text string is move
than one line my blank lines and the standard text are
inserted in the middle of the string. I am
using ".Selection.EndKey Unit:=wdLine" to move to the end
of the line. Can I change anything to move to the end of
the paragraph. My difficulty is compounded as I do not
know how long each text string will be.
 

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