First, you may want to insert Exit Sub here
, unless you want to search for Car after finding Boat.
You should also put
at the top of each of the error handling routines. Without being cleared, Excel thinks the error handling is still being done and any new errors will crash the routine.
In general though, using error code like that is resulting in something approaching spaghetti code. A loop that avoids selecting and tests for whether the terms are found is possible.
That routine assumes that you want as many as possible of the search terms dealt with. If you want only the first found term handled, ingnoring the others, put
after the .Copy line.
Bookmarks