I would like to copy the Name and Description If Quantity on and is equal to zero so I can order the fruit that I do not have. It starts from A2 whenever it see “STOP” then it stops.

I have the code:

However, the code does not stop by itself, I have to break it when it runs. It copies all empty rows between and entire row when I only need to have first 2 columns. My questions are 1. how to let the program knows it should stop when see “STOP” at column A? Only copy none empty row? and only copy first two column (or the number of columns that I would like to have)?
Stop the loop
The problem is in your
Whileclause: you are comparing the length of a string to a string – that will never beTRUECopy only non-empty rows
Test for valid data
Copy required number of columns
See sample code
FWIW your code can do with a bit of improving – heres my take on your requirements
Note that looping over a range can be slow for large amounts of data. Probably OK in this case, but there are ways to improve speed.