|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Counting how many times a table or a field of a table is used in a document
HI all,
is there any way to calculate how many times an updatable field in a cell is used in a document and have that number be displayed ? Or, how do I display how many times a repetitive table is used?? the resultant number also needs to be displayed in a cell of the table in word. I am doing tables that sometimes stay on only 1 page.. but sometimes due to the quantity of information added into cells, it can roll over on to subsequent page or pages. I have been able to use "SEQ seqnum" to give me the instance number of the cell, copied it to the cell of each new table, Crtl A and then F9 updates it in each instance... that works no probs...each new table is consecutively numbered. I cant work out how to get the total number of instances of "SEQ seqnum" being used throughout.. that would totally solve my query. Thus I thought there may be some way to show the number of separate tables used in the doc. Does that make sense? Its almost like "page xx of xx pages"... but with a different twist. Any help would be greatly appreciated. Thanks |
#2
|
||||
|
||||
You could use another SEQ seqnum field, with the \c switch, at the end of the document. Or, you could apply a unique Style name to the SEQ seqnum field and use a STYLEREF field to reference that Style at the end of the document. Etc.
A possible advantage of using a unique Style name and a STYLEREF field is that, if you put the STYLEREF field in the header or footer, it'll automatically show you the most recent table #, counting from the top or bottom of each page, depending on which switches you use.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Creating new field in pivot table based off existing field | laceymarie1987 | Excel | 0 | 06-26-2014 12:13 PM |
VBA Code to take data from a table in word document and place it in a summary table | VBLearner | Word VBA | 1 | 03-09-2014 08:42 PM |
Using DocProperty Field Codes multiple times in the same document | trueimage | Word | 2 | 09-18-2013 04:44 PM |
Field not showing in Pivot Table Field List | kmcovington | Excel | 0 | 10-26-2012 10:14 AM |
Insert table in document - automatically updates second table in summary? | Mechanic | Word | 2 | 08-01-2012 09:44 PM |