Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #12  
Old 08-22-2016, 02:25 PM
tomsrv tomsrv is offline Macro to return a word count of text contained within a bookmark Windows 7 64bit Macro to return a word count of text contained within a bookmark Office 2010 32bit
Novice
Macro to return a word count of text contained within a bookmark
 
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
 

Tags
word count macro



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to return a word count of text contained within a bookmark FORMTEXT field contained in INCLUDETEXT bookmark emwinschuh Word 1 08-17-2015 08:55 AM
Macro to return a word count of text contained within a bookmark A recurring word count macro? bpanda Word VBA 1 06-11-2013 07:17 AM
Macro to return a word count of text contained within a bookmark Word Count Macro bpanda Word VBA 1 01-11-2013 06:51 PM
Macro to return a word count of text contained within a bookmark Word 2003 - IncludeText Does Not Include Bookmark Text if in a Form Text Control skarden Word 1 12-12-2011 10:39 PM
*Word 2007 Macro for Character Count gbartlet Word 0 07-21-2010 11:12 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:30 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft