And your array would look something like:

vb Code:
  1. Const Words = "word1,word2,word3,word4,word5,..."
  2. Dim WordArr() as string
  3. Dim WordCount as long
  4.  
  5. WordArr = Split(Words,",")
  6. WordCount = Ubound(WordArr)+1
Or you could read the words from a file (better method if you need to add/change/remove words)

The you use a function like opus suggest to get the words you need.