S
Stephen English
I am iterating though one document (docIndex) and want to keep adding tables
before a bookmark in another document (docAgenda).
Every time I want to add a table to docAgenda, I access
docAgenda.Bookmarks("Start1").Select
I then want to add tables before the bookmark so that next time the bookmark
is at the end of the previously added table.
I have tried various ways of doing it but they seem harder than they should
be and they don't always seem to give me the control I want (such as
adjoining tables get merged)
Selection.Characters.Last.Previous.MoveStart
Selection.InsertAfter vbCrLf & vbCrLf
Selection.Move wdCharacter, -2
Set tblAgenda = Selection.Range.Tables.Add(Selection.Range, 1, 2)
Does anybody have a better way of doing this please?
Thanks
Stephen
before a bookmark in another document (docAgenda).
Every time I want to add a table to docAgenda, I access
docAgenda.Bookmarks("Start1").Select
I then want to add tables before the bookmark so that next time the bookmark
is at the end of the previously added table.
I have tried various ways of doing it but they seem harder than they should
be and they don't always seem to give me the control I want (such as
adjoining tables get merged)
Selection.Characters.Last.Previous.MoveStart
Selection.InsertAfter vbCrLf & vbCrLf
Selection.Move wdCharacter, -2
Set tblAgenda = Selection.Range.Tables.Add(Selection.Range, 1, 2)
Does anybody have a better way of doing this please?
Thanks
Stephen