Relatively new to macros and I'm starting to venture past the recorder. I've been unable to write code for this loop...
I would like to search a short range in one column (B1:B50) for two of 5 names.
Two, and only two of the five names will always appear in the range. And, each name will only appear once. However, the location of the two names within the range will vary from one day to the next.
When the first name is found, I would like to cut/paste it at A15.
Resuming the search in column B, when the second name is found, I would like to cut/paste it at A25.
Example. Names: John, Joe, Jack, Jill, Jane. 'Jill' is located in cell B12. 'John' is located in cell B33.
What VBA code would, 1) search for the names in range B1:B50; 2) when the first name is found, identify the row (msg box) and cut/paste it at A15; 3) resume the search one cell below where the first name was found; 4) when the second name is found, cut/paste it at A25?
Any help would be greatly appreciated.
Bookmarks