View Single Post
 
Old 10-11-2019, 05:42 PM
Genericname1111 Genericname1111 is offline Windows 7 64bit Office 97-2003
Novice
 
Join Date: Aug 2019
Posts: 17
Genericname1111 is on a distinguished road
Default

Quote:
Originally Posted by Charles Kenyon View Post
Yes, the word "page" is in your found text.
Replace: ^&


Are you searching for a page number field?
Oops I stuffed up the text there - it should have been:

Find: Page ^#
Replace: Page_^&

Basically with my transcription work we have to add non-breaking spaces after most numbers, but for some numbers (like numbers after the words unit, paragraph, etc.) the non-breaking space goes between the word and the number, not afterwards. I often forget to add them so I'm trying to do find/replaces to find those specific words and add the non-breaking spaces between those words and numbers. But creating 10 sections in a macro for each word + number combination (e.g. page 0-9 / unit 0-9) is time-consuming.
Quote:
Originally Posted by Charles Kenyon View Post
I was going to moderate the word "macro" out of the title for this thread but was not sure.
Are you really looking for a macro? I am reading your question as you simply want a solution to be able to do the replace.

As you've seen, the general replace function is very powerful.

Once you have replace settings that do what you want, you can record a macro if you need one.
Yes that's a good point, I am going to make a macro but really I'm just trying to figure out how to do it in find/replace and then I'll just turn it into a macro.
Reply With Quote