Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2012-12-24
2
Medium Priority
?
513 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 2000 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Shortcuts in Word Just the other day I had a training for Microsoft and they wanted me to show how well the new Windows and Office behaved on a touch device, which by the way is great, but it was only then that I realized that using keyboard shortc…
Using Word 2013, I was experiencing some incredible lag when typing.  Here's what worked for me....
This video walks the viewer through the process of creating envelopes and labels, with multiple names and addresses. Navigate to the “Start Mail Merge” button in the Mailings tab: Follow the step-by-step process until asked to find the address doc…
This video walks the viewer through the process of creating Hyperlinks for the web and other documents. Select the "Insert" tab: Click "Hyperlink":  Type "http://" followed by a web address to reference a website or navigate to a document to ref…

927 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