H
hals_left
Hi,
Some questions on replicating tables
Whats the best way to reproduce exact copies of a table without mail
merge? I'd like to have a paragrah/space between each table and then
access the latest table to write to the cells.
How can I position the cursor after the last tabekl to insert a
paragraph / carriage return in the right place.
The code below doesnt work because the table copy is not created as a
new table. If it does have to become one continous table, (not a hige
problem) how do I select and copy the bottom n rows each time?
I have an image in right hand side vertically merged cells, but this
stops me accessing cells by row,cell values to put data in them. Is
thier a workaround to this so that the image is repeated alsong with
the table or another way to access and write to vertically merged cells
Thanks
hals_left
While Not (objRS.EOF)
' add a paragraph at the end
ActiveDocument.Tables(intTable).Select
Selection.TypeParagraph
'add a copy of the last table
ActiveDocument.Tables(intTable).Select
Selection.Copy
Selection.Paste
intTable = intTable + 1
'write to latest table
With ActiveDocument.Tables(intTable)
.Rows(2).Cells(2).Select
Selection.Text = objRS(0)
.Rows(3).Cells(2).Select
Selection.Text = objRS(1)
End With
objRS.MoveNext
wend
Some questions on replicating tables
Whats the best way to reproduce exact copies of a table without mail
merge? I'd like to have a paragrah/space between each table and then
access the latest table to write to the cells.
How can I position the cursor after the last tabekl to insert a
paragraph / carriage return in the right place.
The code below doesnt work because the table copy is not created as a
new table. If it does have to become one continous table, (not a hige
problem) how do I select and copy the bottom n rows each time?
I have an image in right hand side vertically merged cells, but this
stops me accessing cells by row,cell values to put data in them. Is
thier a workaround to this so that the image is repeated alsong with
the table or another way to access and write to vertically merged cells
Thanks
hals_left
While Not (objRS.EOF)
' add a paragraph at the end
ActiveDocument.Tables(intTable).Select
Selection.TypeParagraph
'add a copy of the last table
ActiveDocument.Tables(intTable).Select
Selection.Copy
Selection.Paste
intTable = intTable + 1
'write to latest table
With ActiveDocument.Tables(intTable)
.Rows(2).Cells(2).Select
Selection.Text = objRS(0)
.Rows(3).Cells(2).Select
Selection.Text = objRS(1)
End With
objRS.MoveNext
wend