Hello everyone, I have read that using for statements makes a macro slow. I found this to be true because in my worksheet, I want to work with a large database in excel and I use for to loop through it. When the number of rows is big, it can take up to 15min. Anyone can suggest me better ways to do this?
The following part of the code tells me where the data starts and where it ends in the specifed sheet:
after I get from where my range starts and where it ends, I work with it. The following code is just an example of what I want to do just to give you the idea
there's more code between that, but the goal is to start with the first data in range N&x, from there, search in the rest of the range until "q" for cells that match the data in range N&x. The complete code is the following for more details:
I hope everything is clear, i'm pretty sure there are better ways to write that code but i'm new in programming, also the code above only has the essential things id like to improve, which are the for staments.
Bookmarks