
Signature
Ed Bennett - MVP Microsoft Publisher
http://ed.mvps.org
thanks for your reply.
Here's what I used to do in Word 2000
Preparation:
In Word 2000: Create a template with bookmarks using fieldname of a
recordset from ACCESS as the bookmark name
In VB6 program:
start the Word 2000 app and open the *.dot file
Get the ACCESS recordset then loop through the fieldname of the recordset
call InsertAtBookmark(wordobj, fieldname, fieldvalue)
Public Function InsertAtBookmark(objWordDoc As Object, strBookmark As
String, strText As String) As Boolean
With objWordDoc.bookmarks
If .exists(strBookmark) Then
.Item(strBookmark).Range.Text = strText
adhInsertAtBookmark = True
End If
End With
End Function
the bookmark of Word 2000 can let me know the exact location on the document
and I don't have to worry about the row number, column number.....
If Publisher 2007 can have the same feature, that will be excellent. Or
There exist a better way that I am not aware of.
Ed's suggestion of creating a collection, adding the cells, text ranges to
the collection does not reduce the trouble of finding the exact row number,
column number, text ranges, ...

Signature
A Programmer on Office Automation
> > Can you make Bookmark in Publisher 2007 as
> > good as the bookmark in Word 2000 programmatically ? right now I have to use
[quoted text clipped - 3 lines]
> supposed to accomplish. Could you create a Collection object and add
> TextRanges or Cells to it?