View Single Post
 
Old 06-17-2014, 03:39 PM
Singh_Edm Singh_Edm is offline Windows 8 Office 2013
Advanced Beginner
 
Join Date: Jan 2014
Posts: 41
Singh_Edm is on a distinguished road
Default Insert parentheses before and after each word in a file.

Hi guys!
I have a 1430 page word file where I want to:
  1. Copy a line till a period (including the period).
  2. Have a line break
  3. Paste the line.
  4. Enclose each word of the pasted line in parentheses.
  5. Line break
  6. Return to step 1.

For e.g if I have the following text

I love MS Office forums. Forum members are very helpful. I could use their kind help.

After my macro, the display should look like:

I love MS Office forums.
(I) (love) (MS) (Office) (forums)(.)

Forum members are very helpful.
(Forum) (members) (are) (very) (helpful)(.)

I could use their kind help.
(I) (could) (use) (their) (kind) (help)(.)
Reply With Quote