---
description: In this article, there will be 3 methods for you to count the number of words for sections in your Word document.
title: 3 Methods to Count the Number of Words for Sections in Your Word Document
image: https://www.datanumen.com/blogs/wp-content/uploads/2017/07/Count-the-Number-of-Words-for-Sections-in-Your-Word-Document.jpg
---

-
-
-

[Home](https://www.datanumen.com/blogs/) > [Solutions](https://www.datanumen.com/blogs/category/solutions/) > [Office Solutions](https://www.datanumen.com/blogs/category/solutions/office-solutions/) > [Word Solutions](https://www.datanumen.com/blogs/category/solutions/office-solutions/word-solutions/) > 3 Methods to Count the Number of Words for Sections in Your Word Document

# 3 Methods to Count the Number of Words for Sections in Your Word Document

[Word Solutions](https://www.datanumen.com/blogs/category/solutions/office-solutions/word-solutions/) September 28, 2025

Share Now:

-
-
-
-
-
-
-
-

*In this article, there will be 3 methods for you to count the number of words for sections in your Word document.*

It’s easy to get the total number of words of a document. But there is no function in Word to tell us the number of words of a section. And given to the fact that we prefer to put contents of the same topic in one section, such as organizing a chapter while writing a book, it’s necessary for us to come up with workarounds to get the section count. ![Count the Number of Words for Sections in Your Word Document](https://www.datanumen.com/blogs/wp-content/uploads/2017/07/Count-the-Number-of-Words-for-Sections-in-Your-Word-Document.jpg "Count the Number of Words for Sections in Your Word Document")  Following are 3 approaches which require you running a macro.

## Method 1: Count the Number of Words for Current Section

1. Firstly, place cursor inside a target section.
2. Then you need to open VBA editor in Word. Click “Developer” and then the “Visual Basic” command. In case you can’t find “Developer” in the Ribbon, then press “Alt+ F11” instead.
3. Next click “Normal” project in the left column.
4. Then click “Insert” tab.
5. On that drop-down menu, choose “Module”.![Click "Normal"->Click "Insert"->Click "Module"]( "Click \"Normal\"->Click \"Insert\"->Click \"Module\"")
6. Open new module by double click.
7. Now in the open module, paste bellowing codes:

```
Sub CountWordsOfCurrentSection()
  MsgBox ("There are " & Selection.Sections(1).Range.ComputeStatistics(wdStatisticWords) _
         & " words in current section.")
End Sub
```

8. Lastly, click “Run” or press “F5” to execute codes.![Paste Codes ->Click "Run"]( "Paste Codes ->Click \"Run\"")

You will receive a message box, showing the total number of current section, such as below:![Number of Words in Current Section]( "Number of Words in Current Section")

## Method 2: Count the Number of Words for a Specific Section

Let’s say you have been working on a book and setting each chapter as an individual section. Then to know how many words you’ve written in a chapter, you can utilize this method.

1. Follow above steps to install and run a macro.
2. Just replace macro with this one:

```
Sub CountWordsOfSpecificSection()
  Dim strSecNum As String
  Dim objDoc As Document
 
  Application.ScreenUpdating = False
 
  Set objDoc = ActiveDocument
  strSecNum = InputBox("Enter a section number here:", "Enter Section Number") 
  MsgBox ("There are " & objDoc.Sections(strSecNum).Range.ComputeStatistics(wdStatisticWords) _
          & " words in section " & strSecNum & ".")
  Application.ScreenUpdating = True
End Sub
```

3. And running it, there will be an input box. In the “Enter Section Number” box, input the section number and click “OK” to move on.![Enter Section Number->Click "OK"]( "Enter Section Number->Click \"OK\"")

The result is shown on a message box.

## Method 3: Count the Number of Words for All Sections in a Document

As the subtitle suggests, this way shall get you total number of words of each section in a document and list them on a message box.

1. First of all, open target document.
2. Still, you have to repeat steps in method 1 to install and run the macro.
3. And this time, change with this macro:

```
Sub CountWordsOfEachSectionInDoc()
  Dim objDoc As Document
  Dim nNumberOfSection As Long
  Dim strText As String
 
  Application.ScreenUpdating = False
  Set objDoc = ActiveDocument
  nNumberOfSection = objDoc.Sections.Count
 
  For nNumberOfSection = 1 To nNumberOfSection
    strText = strText & "There are " & objDoc.Sections(nNumberOfSection) _
              .Range.ComputeStatistics(wdStatisticWords) & " words in section " & nNumberOfSection & "; " _
              & vbNewLine
  Next nNumberOfSection
 
  MsgBox strText
 
  Application.ScreenUpdating = True
End Sub
```

Here is the possible outcome:![Word Count for Each Section in Document]( "Word Count for Each Section in Document")

## Save Valuable Data

While dealing with all kinds of documents, you have to keep in mind the safety of them. Since you can never tell when the next data loss shall happen, it’s suggested to back up important files. Besides, it’s always good to obtain a tool that can [recover doc](https://www.datanumen.com/word-repair/), if any.

## Author Introduction:

Vera Chen is a data recovery expert in DataNumen, Inc., which is the world leader in data recovery technologies, including [xls repair](https://www.datanumen.com/excel-repair/) and pdf repair software products. For more information visit [www.datanumen.com](https://www.datanumen.com/)

Share Now:

-
-
-
-
-
-
-
-

[← Previous post](https://www.datanumen.com/blogs/4-effective-methods-exclude-header-rows-sorting-contents-word-table/)

[Next post →](https://www.datanumen.com/blogs/limit-number-emails-opened-time-outlook-vba/)

Comments are closed.

![Data Recovery Blog]()

Follow or like us on Facebook, LinkedIn and Twitter to get all promotions, latest news and updates on our products and company.

-
-
-

### Featured Products

- [DataNumen Outlook Repair](https://www.datanumen.com/outlook-repair/)
- [DataNumen SQL Recovery](https://www.datanumen.com/sql-recovery/)
- [DataNumen Exchange Recovery](https://www.datanumen.com/exchange-recovery/)
- [DataNumen Access Repair](https://www.datanumen.com/access-repair/)
- [DataNumen Excel Repair](https://www.datanumen.com/excel-repair/)
- [DataNumen PDF Repair](https://www.datanumen.com/pdf-repair/)
- [DataNumen Word Repair](https://www.datanumen.com/word-repair/)
- [DataNumen Zip Repair](https://www.datanumen.com/zip-repair/)

### Popular posts

```json
{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.datanumen.com\/blogs\/3-methods-count-number-words-sections-word-document\/#article","isPartOf":{"@id":"https:\/\/www.datanumen.com\/blogs\/3-methods-count-number-words-sections-word-document\/"},"author":{"name":"AuthorCCW","@id":"https:\/\/www.datanumen.com\/blogs\/#\/schema\/person\/33ded6c47c77587f9158d99f05e23957"},"headline":"3 Methods to Count the Number of Words for Sections in Your Word Document","datePublished":"2017-07-10T07:48:37+00:00","dateModified":"2025-09-28T15:07:36+00:00","mainEntityOfPage":{"@id":"https:\/\/www.datanumen.com\/blogs\/3-methods-count-number-words-sections-word-document\/"},"wordCount":474,"commentCount":1,"publisher":{"@id":"https:\/\/www.datanumen.com\/blogs\/#organization"},"image":{"@id":"https:\/\/www.datanumen.com\/blogs\/3-methods-count-number-words-sections-word-document\/#primaryimage"},"thumbnailUrl":"https:\/\/www.datanumen.com\/blogs\/wp-content\/uploads\/2017\/07\/Count-the-Number-of-Words-for-Sections-in-Your-Word-Document.jpg","articleSection":["Word Solutions"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.datanumen.com\/blogs\/3-methods-count-number-words-sections-word-document\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.datanumen.com\/blogs\/3-methods-count-number-words-sections-word-document\/","url":"https:\/\/www.datanumen.com\/blogs\/3-methods-count-number-words-sections-word-document\/","name":"3 Methods to Count the Number of Words for Sections in Your Word Document","isPartOf":{"@id":"https:\/\/www.datanumen.com\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.datanumen.com\/blogs\/3-methods-count-number-words-sections-word-document\/#primaryimage"},"image":{"@id":"https:\/\/www.datanumen.com\/blogs\/3-methods-count-number-words-sections-word-document\/#primaryimage"},"thumbnailUrl":"https:\/\/www.datanumen.com\/blogs\/wp-content\/uploads\/2017\/07\/Count-the-Number-of-Words-for-Sections-in-Your-Word-Document.jpg","datePublished":"2017-07-10T07:48:37+00:00","dateModified":"2025-09-28T15:07:36+00:00","description":"In this article, there will be 3 methods for you to count the number of words for sections in your Word document.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.datanumen.com\/blogs\/3-methods-count-number-words-sections-word-document\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.datanumen.com\/blogs\/3-methods-count-number-words-sections-word-document\/#primaryimage","url":"https:\/\/www.datanumen.com\/blogs\/wp-content\/uploads\/2017\/07\/Count-the-Number-of-Words-for-Sections-in-Your-Word-Document.jpg","contentUrl":"https:\/\/www.datanumen.com\/blogs\/wp-content\/uploads\/2017\/07\/Count-the-Number-of-Words-for-Sections-in-Your-Word-Document.jpg","width":1036,"height":552,"caption":"Count the Number of Words for Sections in Your Word Document"},{"@type":"WebSite","@id":"https:\/\/www.datanumen.com\/blogs\/#website","url":"https:\/\/www.datanumen.com\/blogs\/","name":"Data Recovery Blog","description":"Discuss every aspect of data recovery","publisher":{"@id":"https:\/\/www.datanumen.com\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.datanumen.com\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.datanumen.com\/blogs\/#organization","name":"Data Recovery Blog","url":"https:\/\/www.datanumen.com\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.datanumen.com\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/www.datanumen.com\/blogs\/wp-content\/uploads\/2019\/02\/logowithouttext.jpg","contentUrl":"https:\/\/www.datanumen.com\/blogs\/wp-content\/uploads\/2019\/02\/logowithouttext.jpg","width":296,"height":397,"caption":"Data Recovery Blog"},"image":{"@id":"https:\/\/www.datanumen.com\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataNumen","https:\/\/x.com\/DataNumen","http:\/\/www.linkedin.com\/company\/datanumen","https:\/\/myspace.com\/datanumen\/","http:\/\/www.pinterest.com\/datanumen\/","https:\/\/www.youtube.com\/channel\/UCVIIuuKfUBHSJauUaVP13tw"]},{"@type":"Person","@id":"https:\/\/www.datanumen.com\/blogs\/#\/schema\/person\/33ded6c47c77587f9158d99f05e23957","name":"AuthorCCW","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/3516ed90fc242780d3947a989f895bc46e70c3e83485d30f2b457a007906aa58?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/3516ed90fc242780d3947a989f895bc46e70c3e83485d30f2b457a007906aa58?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3516ed90fc242780d3947a989f895bc46e70c3e83485d30f2b457a007906aa58?s=96&d=mm&r=g","caption":"AuthorCCW"},"sameAs":["https:\/\/www.datanumen.com\/"]}]}
```
