> Why bother with the bookmarks. Why not just populate the table directly? --
>
[quoted text clipped - 68 lines]
> >
> > Exit Sub
OK, if you are creating tables, still better to create them on the fly than
work with one and use copy and paste (and this will give you better
performance also) --
Dim pTable as Word.Table
with activedocument
'Iterate the rows in the source data
For pRow = 1 to oResultSet.GetNumberOfRows
'Insert the table for this row
set pTable = .Tables.Add _
Range:=.Range(.Content.End - 1,
.Content.End), _
NumRows:=1, _
NumColumns:=
oResultSet.GetNumberOfColumns
'Populate the table from the current row
For pColumn = 1 to oResultSet.GetNumberOfColumns
pTable.Cells(pRow, pColumn) =
oResultSet.GetColumnValue(Column)
Next
Next
End With
> Well The design of the macro is such that every row corresponds to a new
> table. so if there are 50 records then 50 corresponding tables are
[quoted text clipped - 87 lines]
>> >
>> > Exit Sub
rxs0569 - 13 Nov 2005 21:07 GMT
Thanks Jezebel. But your approach defeats a primary intent. I want to give
the user the flexibility of creating tables wit their own formatting options.
They may choose to apply background, fonts etc. If i create tables on the fly
I cannot capture these user customizations.

Signature
Raj
> OK, if you are creating tables, still better to create them on the fly than
> work with one and use copy and paste (and this will give you better
[quoted text clipped - 115 lines]
> >> >
> >> > Exit Sub
Jezebel - 13 Nov 2005 21:10 GMT
Define a table style. Let the user customise that as they choose. Apply that
style to each table you create.
> Thanks Jezebel. But your approach defeats a primary intent. I want to give
> the user the flexibility of creating tables wit their own formatting
[quoted text clipped - 129 lines]
>> >> >
>> >> > Exit Sub