M
miga
Hi,
I'm trying to copy a table - identified by a bookmark on a formfield
within the table - to another position in the document. More
specifically, the insert location is just after another table which
also can be identified only by the bookmark of a formfield within the
destination table. I guess my problem is identifying the destination
insert point of the new table which ideally should be the first
paragrap after the destination table - but how ?
Copying the table goes as follows:
If (Selection.BookmarkID <> Empty) Then
ActiveDocument.Unprotect (DocPassword)
Selection.Tables(1).Range.Copy
.....
Which works as intended. Pasting the table, however, does not insert
it in the correct spot. I've tried:
Selection.Paragraphs(1).Range.PasteSpecial
trying to insert it into the first paragraph after the table. This
inserts the source table into the current - selected - formfield in
the table.
Any help is highly appreciated.
Best regards and thanks,
Michael
I'm trying to copy a table - identified by a bookmark on a formfield
within the table - to another position in the document. More
specifically, the insert location is just after another table which
also can be identified only by the bookmark of a formfield within the
destination table. I guess my problem is identifying the destination
insert point of the new table which ideally should be the first
paragrap after the destination table - but how ?
Copying the table goes as follows:
If (Selection.BookmarkID <> Empty) Then
ActiveDocument.Unprotect (DocPassword)
Selection.Tables(1).Range.Copy
.....
Which works as intended. Pasting the table, however, does not insert
it in the correct spot. I've tried:
Selection.Paragraphs(1).Range.PasteSpecial
trying to insert it into the first paragraph after the table. This
inserts the source table into the current - selected - formfield in
the table.
Any help is highly appreciated.
Best regards and thanks,
Michael