![]() |
|
#5
|
||||
|
||||
|
The macro looks for two bookmarks named "Sustainability" and "TeamWorking" which relate to the bookmarks in your illustration (where they are not named). Change those names in the macro to the actual names and the macro will work to add or update the table shown in your illustration.
To get the word count of the bookmarked range containing the cursor Code:
Dim orng As Range
Set orng = Selection.Bookmarks(1).Range
MsgBox orng.Words.Count
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
| Tags |
| word count macro |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
FORMTEXT field contained in INCLUDETEXT bookmark
|
emwinschuh | Word | 1 | 08-17-2015 08:55 AM |
A recurring word count macro?
|
bpanda | Word VBA | 1 | 06-11-2013 07:17 AM |
Word Count Macro
|
bpanda | Word VBA | 1 | 01-11-2013 06:51 PM |
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 |