Hello,
I'm very new to VBA and trying to streamline the current macro I've been using, but the answer is beyond my current knowledge of the language and I haven't had much luck searching.
I am currently using a counter setup to check a value of a particular column in my data which is either 'SALE' or 'REMOVE', then copying a part of the row if it finds 'SALE' (pasting it to another worksheet), or skips to the next row if it finds 'REMOVE'.
Its doing this several thousand times and I feel the code could be written much better to sort all the data so all of the rows with 'SALE' line up, and I can copy/paste a range instead of doing it row by row.
Is there a command similar to .Cells(Rows.Count, "A").End(xlUp).Row, but instead of returning the last row number in column A with a value, it returns the last row number in column A with the value of 'SALE'?
Any help would be greatly appreciated!
Here is the current code I've been using. It works, but just takes far too long and feels clunky.
Thank you!
Bookmarks