Hi,
Indeed it worked. I was a bit skeptical because my initial version worked for some test files. I only noticed the looping when putting on a live file (not test).
Thanks so much.
Costin
Hi,
It is one thing when I can define myself the start and end of a Range, than let Word choose. I thought I can control better, by specifying exact positions.
I will try today the method proposed by you.
Thanks,
Costin
PS: What if not?
Hi,
Thank a lot for the answer. I will use this approach tonight to see how it behaves. I used the first method I described because I felt like having more control.
Thank you again for your quick answer.
Costin
Hi,
Thanks a lot for the answer. I am sorry for using "moving" and "resizing" words inadequately and this caused confusion.
Let me explain in more detail.
Suppose I have the sentence: "The links are blue now, yesterday the links were black.". I need to extract the start and end positions were...
Hi,
I am trying to loop through a document to find all occurences of a text.
For example, I want to find "link". The sentence in the document is "The links are broken."
Using the code below, I find the first occurence. After that, is set myRange to be from after the occurence to the end. And...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.