[AccessD] Inserting text in a word document

Bryan Carbonnell carbonnb at gmail.com
Fri Feb 10 12:19:35 CST 2006


On 10/02/06, Jim Dettman <jimdettman at earthlink.net> wrote:

>                 mobjWord.WordBasic.INSERT
> pelNullToZLS(rstData(avarFields(pelFldAccessField, intJ)))


Ick!!! WordBasic!!!!

John,

Here is a little chunk that should do it for you:

Dim doc As Word.Document
Dim rng As Word.Range

Set rng = doc.Bookmarks("MyBookmarkName").Range

rng.InsertAfter "This text gets inserted after the bookmark"

--
Bryan Carbonnell - carbonnb at gmail.com
Life's journey is not to arrive at the grave safely in a well
preserved body, but rather to skid in sideways, totally worn out,
shouting "What a great ride!"



More information about the AccessD mailing list