Link to home
Create AccountLog in
Avatar of brothertruffle880
brothertruffle880Flag 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".
ASKER CERTIFIED SOLUTION
Avatar of John Korchok
John Korchok
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account