Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 03-24-2016, 10:27 AM
macropod's Avatar
macropod macropod is offline Hyperlink in Table of contents Windows 7 64bit Hyperlink in Table of contents Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,521
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

As I said, with a macro. For example, the following macro will output a word-count for each Section at the end of the document.
Code:
Sub Demo()
Dim Sctn As Section, StrCounts As String
With ActiveDocument
  For Each Sctn In .Sections
    StrCounts = StrCounts & "Section " & Sctn.Index & ":" & vbTab & _
      Sctn.Range.ComputeStatistics(wdStatisticWords) & vbCr
  Next
  .Range.InsertAfter StrCounts
End With
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hyperlink in Table of contents Move table cell contents from one table to another table or cell in same table donaldadams1951 Word VBA 4 02-04-2015 03:54 PM
Hyperlink in Table of contents Table with Table of Contents as a Column dynamictiger Word Tables 4 07-21-2014 10:16 PM
Table of Contents feature Word 10 04-09-2013 05:45 AM
Hyperlink in Table of contents Table of Contents ep2002 Word 4 06-20-2012 10:23 PM
Table of contents markos97 Word 0 10-26-2010 08:52 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:36 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