How to I get a total word count in Excel?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a command to obtain a total word count in Excel spreadsheets similar
to getting a word count in Word documents? This is required to submit
language translation requests.
Thanks,
 
From Chip

Sub AAA()
Dim WordCount As Long
Dim Rng As Range
Dim S As String
Dim N As Long
For Each Rng In ActiveSheet.UsedRange.Cells
S = Rng.Text
N = 0
If S <> "" Then
N = Len(S) - Len(Replace(S, " ", "")) + 1
End If
WordCount = WordCount + N
Next Rng
MsgBox WordCount
End Sub


--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top