Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. Sub Sample()
  2.  
  3. Dim apara As Paragraph
  4. Dim lineText As String
  5.  
  6.  
  7. For Each apara In ActiveDocument.Paragraphs
  8.  
  9. lineText = apara.Range
  10.  
  11. 'Now print the paragraph
  12.  
  13. Debug.Print lineText
  14.  
  15. Next apara
  16.  
  17. End Sub
  18.  
  19. For Each sentence In ActiveDocument.StoryRanges
  20. For Each w In sentence.Words
  21. Debug.Print w
  22. Next
  23. Next
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement