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.
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.