Dynamical tables

P

Phantim

1) I have a data source that I am inserting into a table, however, this data source is of varying record counts each time it is run. Currently, we have to make sure there are enough rows in our Word doc to accomodate the number of records in our data source

Is there a way to have the next table row dynamically created on whether or not it has reached the end of records

2) Is there a merge field for showing a record count? Say I have 14 names and address that I have merged into a check list, I would like to have on the last page, that there are 14 participants //or whatever the number of recrods that were merged in//.
 
P

Phantim

I know, answering my own post...
I figured out part one by making my merge type a Directory, but I stil have not figured out how to display a record count automatically.
 
D

Doug Robbins - Word MVP

The following code in a macro will display the number of records in the
datasource attached to the active document:

MsgBox ActiveDocument.MailMerge.DataSource.RecordCount


--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
Phantim said:
I know, answering my own post...
I figured out part one by making my merge type a Directory, but I stil
have not figured out how to display a record count automatically.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top