Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-21-2019, 04:11 AM
jonesy497 jonesy497 is offline How to repeat a search followed by editing text? Windows 10 How to repeat a search followed by editing text? Office 2019
Novice
How to repeat a search followed by editing text?
 
Join Date: Aug 2019
Posts: 6
jonesy497 is on a distinguished road
Default How to repeat a search followed by editing text?

I used the record macro function to record myself doing Ctrl + h to search for "[a-z]/[a-z]" (a / that is preceded and followed by any alphabetic character) and then used the arrow keys to move the cursor and insert spaces either side of the /, without overwriting the alphabetic characters that become highlighted in the search.



What I'm struggling with is how to repeat this action for the rest of the document? I want to search, then edit text, then search again, etc, until the end of the document. The search function alone just does the search, and if I use the search and replace function, because the alphabetic characters are highlighted in the search, replacement text overwrites those characters, which I don't want. I feel like there's some basic loop command or something but I can't find any examples of code that are similar enough to what I want, and I've tried and tested a few different approaches with no luck.

Thanks.
Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
possible to repeat text with numbered list? Burt Word 5 07-14-2019 04:02 PM
outlook search tool locked with key word, it will not allow deleting or editing roni Outlook 0 07-12-2017 07:31 AM
How to repeat a search followed by editing text? Repeat text dgame27 Word 1 07-06-2016 09:14 PM
Automatically Repeat Text in Footer Luxanais Word 2 09-24-2015 10:10 AM
How to repeat a search followed by editing text? Text will repeat in the fields ypurcaro Word 1 02-07-2013 01:46 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:13 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft