Hello everyone,
I would like your support on the below please. As you will see I'm not an experienced VBA user, rather I would say I'm beginner.
So I was wondering if you can help me with a simple issue for the experienced users. I have a spreadsheet with +150k rows from which on column L I want the code to go through each cell and when it finds the value "BPXN" then to cut the line(s) underneath it and paste them to the right in specific columns.
For example :
If in cell L350 finds the value "BPXN" and the value in cell L351 is different from "BPXN" then to cut the values from L351 to W351 and paste them to X350 to AI350. After that if the value in cell L352 is also different from "BPXN" to cut the values from L352 to W352 and paste them to AJ350 to AU350 and so on. In other words for each row that it finds under the "BPXN" until it finds again the next "BPXN" to cut them and paste them 12 columns after the previous paste.
I have attached an example file in which I think I'm explaining what exactly I'm looking for.
The code that I have below is from what I recorded while doing this and from what I could find in the web. So don't expect something like quality because as I said I'm quite a beginner.
I solved my problem with 2 different recordings of macro but it was good for 100 rows now that I have 150.000 rows to deal with I'm making mistakes and I have to do everything from the beginning some times.
I really hope that someone will be able to help me. Thank you in advance for using your time to help me.Please Login or Register to view this content.
Bookmarks