View Single Post
 
Old 10-14-2022, 11:10 PM
laith93 laith93 is offline Windows 10 Office 2019
Competent Performer
 
Join Date: Jul 2021
Posts: 117
laith93 is on a distinguished road
Default

Quote:
Originally Posted by gmayor View Post
Selection.Paragraphs(1) will work. There is no need to select the paragraph. You do however have to stop the search when the range has been processed.
Wow Wow Wow

It works perfectly, although I changed the Rng to Selection.Paragraphs(1).Range, but doesn't work previously.
However, I think it requires restarting Word, but when I used your code, it works directly.

Thanks, Thanks Thanks my bro
You are the magic man
Reply With Quote