View Single Post
 
Old 08-22-2016, 02:25 PM
tomsrv tomsrv is offline Windows 7 64bit Office 2010 32bit
Novice
 
Join Date: Aug 2015
Location: UK
Posts: 9
tomsrv is on a distinguished road
Default

Quote:
Originally Posted by gmaxey View Post
You have a document that consists of tables. Column 1 defines the competency (the text in column 1 is the same as the names you gave the bookmarks). Column 3 defines a range of text that is counted. You have bookmarked it using the same name as you typed in column 1.

The code creates a table with the competency listed in column 1 and the word count in column 2. Therefore it is perfectly clear what range corresponds to a count so I am not going to waste my time writing code that uses bookmarks when you don't need the bookmarks in the first place.
The code is very good but by the nature of the tables (using merged cells etc) the macro doesn't seem to be able to create a sub-group of Health and Safety (e.g. Level 1 and Level 2), so this would be the only tweak to make in line with your comments. For my purposes, I need to do some word count analysis on paragraphs that will not be forming part of a table (i.e. I have to provide a case study which goes in a different word section to all the tabular stuff, and I have to exclude titles and have certain paras be certain word counts). For my purposes bookmarks would be useful as they could get around the issue of words not being in a table.


Last edited by tomsrv; 08-22-2016 at 02:31 PM. Reason: Added an image that I forgot to originally; added more context
Reply With Quote