Solved

how do I loop through individual words in a paragraph using MS Word vba

Posted on 2012-12-24
2
499 Views
Last Modified: 2012-12-24
how do I loop through individual words in a paragraph using MS Word vba
0
Comment
Question by:Dov_B
2 Comments
 
LVL 22

Accepted Solution

by:
Flyster earned 500 total points
ID: 38719609
Here's one way to do that:

Sub WordLoop()
Dim wr as Range
    For each wr in ActiveDocument.Words
        'Enter your code here
    Next wr
End Sub

Flyster
0
 

Author Closing Comment

by:Dov_B
ID: 38719633
Thanks a gazillion!
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I would like to show you some basics you can do with Mailings in MS Word. It´s quite handy feature you can use for creating envelopes, labels, personalized letters etc. First question could be what is this feature good for? Mailing can really he…
Using Word 2013, I was experiencing some incredible lag when typing.  Here's what worked for me....
This video shows where to find templates, what they are used for, and how to create and save a custom template using Microsoft Word.
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question