Number of Tables & Figures

R

Robin Clay

Greetings !

If I should want the number of words in the document, then

Tools > Word count will give it

OR I can get it by File > Properties > Statistics

OR I can use Insert > Field > NumWords

OR Insert > Fields > DocProperty > Words

HOWEVER.... How can I insert into the document
the answers to

(a) Number of Tables, and

(b) Number of Figures



RClay AT haswell DOT com
 
J

Jean-Guy Marcil

Hi Robin,

Robin Clay said:
Greetings !

If I should want the number of words in the document, then

Tools > Word count will give it

OR I can get it by File > Properties > Statistics

OR I can use Insert > Field > NumWords

OR Insert > Fields > DocProperty > Words

HOWEVER.... How can I insert into the document
the answers to

(a) Number of Tables, and

Place the cursor where you want and run ths line of code:
Selection.TypeText ActiveDocument.Tables.Count
(b) Number of Figures

Too vague... a figure can be anything, a picture, a textbox, a graphic, an
org chart, etc... You have to be more precise here as to what you refer to
when using "figure."

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 

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