Sub Test() Dim t As Text Dim s As Shape Dim d As Document Set d = CreateDocument Set s = d.ActiveLayer.CreateParagraphText(2, 2, 8, 8, _ "This is an example for the TextWords Class") Set t = s.Text MsgBox "The total number of words is " & t.Story.Words.CountEnd Sub