Hopefully this makes sense
This assigns the word to search for - const allows you to use it anywhere within code and it does not change
Setting the variable types ie: ranges numbers, string of text
this will use find in sheet1, coloumn A to find the word "purchasing"
if its found it will set R as the range found
then use an if statement to check if the word was found
This is working in reverse ie; if R is found then do this
Assigns the found range address to a variable
assigns the found range but starts 1 row above as the first cell then increases the range to 4 rows deep x the number of columns used in the used range surroundung that cell
Then loop through the rest of column to find anymore examples of the word "purchasing"
if no more examples found exit the loop
if the next found example is the same as the original ie; one found only then exit loop
otherwise assign the cell where the 2 ranges cross
Exit the loop
If the ctRng was found then
assign a variable
loop through each cell in the cutRng
cut the cell and paste it in the next sheet
find the next row ready for the next loop/cell
end loop
Bookmarks