Macro to count word counts in different Word docs, and enter them into Excel?

Ripley2453

New Member
Joined
Nov 25, 2015
Messages
12
Hi everyone,

I'm an aspiring author, and want to keep track of the word counts in my chapters.
At the moment each chapter is a different file. I would like a macro to go into each file, and tell me the word count in an excel table, for each chapter.

I'm usually pretty good at figuring macros out for myself, but I would just like a nice, simple macro that I can just copy and paste.

Anyone able to help me?

NOTE: I am using Office 2016 (365).

Cheers,
Brad.
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
The macro works fine for me - the stats are output to the active sheet in the workbook you run the macro from. Do note that, as coded, the macro looks for docx files; if you're using doc files, change:
strFile = Dir(strFolder & "\*.docx", vbNormal)
to:
strFile = Dir(strFolder & "\*.doc", vbNormal)
 
Upvote 0
The macro works fine for me - the stats are output to the active sheet in the workbook you run the macro from. Do note that, as coded, the macro looks for docx files; if you're using doc files, change:
strFile = Dir(strFolder & "\*.docx", vbNormal)
to:
strFile = Dir(strFolder & "\*.doc", vbNormal)


They're docx files anyway.
I don't know what I've done, but it's all working now! Cheers, much appreciated! :)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,971
Members
452,371
Latest member
Frana

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top