vba document words loop

The solution for “vba document words loop” can be found here. The following code will assist you in solving the problem.

For Each sentence In ActiveDocument.StoryRanges
For Each w In sentence.Words
Debug.Print w
Next
Next

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts