![]() |
#13
|
||||
|
||||
![]()
The selection range changes as soon as you find an instance so the loop will start from that new selection location and if that location is collapsed then that is where you start from and .Wrap isn't set in your code.
How much content is in the FRDoc file? This seems pretty inefficient to need to retrieve the search terms from there. Can you store that as a building block so it can be retrieved faster?
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
Tags |
find, highlight, macro |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
karkey | Word VBA | 3 | 01-05-2021 02:13 PM |
![]() |
abhimanyu | Word VBA | 5 | 03-20-2020 01:33 PM |
How to find (highlight) two and more words in a list of 75k single words in Word 2010 | Usora | Word | 8 | 05-29-2018 03:34 AM |
![]() |
bakerkr | Word VBA | 4 | 10-19-2017 02:23 PM |
![]() |
RBLampert | Word VBA | 13 | 10-23-2012 04:45 PM |