Avatar of brothertruffle880
brothertruffle880
Flag for United States of America asked on

MS Word 2013 VBA: I would like to search for a word, go to the beginning of the line. select the data until the hard return (paragraph symbol)

Please help me write a macro.

I would like to:
1. search for the word degree.
2. stop the search.
3. bring the cursor to the beginning of the line.
4. select the line up to and including the hard return (paragraph symbol)
5. Delete that selection
6. prompt message box:  Would you like to repeat this macro starting at step 1. YES (go to step 1) NO (end macro)

for some reason my macro recorder does not record "searching".
VBAMicrosoft Word

Avatar of undefined
Last Comment
Rob Henson

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
John Korchok

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Rob Henson

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck