Hello all,
Could anyone help out with VBA code please? I have set of data in columns A, B and C(around 2000 rows in total). I would like to find all values which contain string "TOP01" or "TOP02" within column A, once string is found(there could be more than 50 records matching those keywords) then move cell values from column A, B and C to columns E, F and G starting from row 1 onward.
For example:
Range A1142 contains keyword "TOP01", range B1142 contains value "11231", range C1142 contains value "30.24" - I would like to move them in E1, F1 and G1 respectively.
Then next matching keyword cell found, say in range A1524 with to be moved into cell E2 and values from same row(in B1524, C1524) into E2, F2 and G2, and so on...
After that to shift cells up to fill empty cells.
Is it achievable by using "for" loop only? Or is there an easier way of doing that to avoid slowing down the macro?
Any help much appreciated.
Thanks.
Could anyone help out with VBA code please? I have set of data in columns A, B and C(around 2000 rows in total). I would like to find all values which contain string "TOP01" or "TOP02" within column A, once string is found(there could be more than 50 records matching those keywords) then move cell values from column A, B and C to columns E, F and G starting from row 1 onward.
For example:
Range A1142 contains keyword "TOP01", range B1142 contains value "11231", range C1142 contains value "30.24" - I would like to move them in E1, F1 and G1 respectively.
Then next matching keyword cell found, say in range A1524 with to be moved into cell E2 and values from same row(in B1524, C1524) into E2, F2 and G2, and so on...
After that to shift cells up to fill empty cells.
Is it achievable by using "for" loop only? Or is there an easier way of doing that to avoid slowing down the macro?
Any help much appreciated.
Thanks.