Hello. The Word 2003 (Tools-Word Count command) has dialogue which show statistics. It has the line with statistics of number of characters with spaces. However I can't found the field for show this statistics. There is only the field - NUMCHARS (without the spaces). How to insert the field for statistics (number of characters with spaces)? Thank you.
Hi Anton, >The Word 2003 (Tools-Word Count command) has dialogue which show >statistics. It has the line with statistics of number of characters >with spaces. However I can't found the field for show this statistics. >There is only the field - NUMCHARS (without the spaces). >How to insert the field for statistics (number of characters with >spaces)? I think you would need a docvariable field, and assign ActiveDocument.ComputeStatistics(wdStatisticCharactersWithSpaces) to that field, like that: With ActiveDocument .Variables("MyCount").Value = _ .ComputeStatistics(wdStatisticCharactersWithSpaces) .Fields.Update End With -- Greetings from Bavaria, Germany Helmut Weber, MVP WordVBA Vista Small Business, Office XP
Thank you, Helmut!
Hi avkokin, You could use a DOCPROPERTY field coded as: {DOCPROPERTY "CharactersWithSpaces"} Note that, after inserting the field, updating it will cause it to include itself in the count. -- Cheers macropod [MVP - Microsoft Word] "avkokin" wrote in message news:20227d82-c977-4702-8271-48d44fa3b1da@t54g2000hsg.googlegroups.com... > Hello. > The Word 2003 (Tools-Word Count command) has dialogue which show > statistics. It has the line with statistics of number of characters > with spaces. However I can't found the field for show this statistics. > There is only the field - NUMCHARS (without the spaces). > How to insert the field for statistics (number of characters with > spaces)? > Thank you.