Hi all.
Thanks to this forum, I managed to work out how to throw my data out to a word document (I hope! I haven't quite finished testing it yet!)
But, I need to move the cursor across cells where I can't use bookmarks and am not sure how to do this! Previously, I've called datasets from within word and used:
Selection.GoTo What:=wdGoToBookmark, Name:="Milestones"
Selection.TypeText vbNullString & .Fields(1)
Selection.MoveRight Unit:=wdCell
Selection.TypeText vbNullString & .Fields(2)
Selection.MoveRight Unit:=wdCell
etc..
but now I'm working from within the database, and using the following structure:
objWord.ActiveDocument.Bookmarks("Milestones").Select
objWord.Selection.Text = vbNullString & .Fields(2)
... what next? How do I move across the cells of a table?
Any help would be greatly appreciated!!!
Thanks.
Thanks to this forum, I managed to work out how to throw my data out to a word document (I hope! I haven't quite finished testing it yet!)
But, I need to move the cursor across cells where I can't use bookmarks and am not sure how to do this! Previously, I've called datasets from within word and used:
Selection.GoTo What:=wdGoToBookmark, Name:="Milestones"
Selection.TypeText vbNullString & .Fields(1)
Selection.MoveRight Unit:=wdCell
Selection.TypeText vbNullString & .Fields(2)
Selection.MoveRight Unit:=wdCell
etc..
but now I'm working from within the database, and using the following structure:
objWord.ActiveDocument.Bookmarks("Milestones").Select
objWord.Selection.Text = vbNullString & .Fields(2)
... what next? How do I move across the cells of a table?
Any help would be greatly appreciated!!!
Thanks.