I just learned to use VBA in excel, I have a spreadsheet as shown,
I have columns from B1:B12 containing content to search and move, I want to build code to search Move the characters in the range C13:AD31 to the same row in the range from C1:AD12. For example, in the area C13:AD31, there is a subregion E14:J14 containing the content "Vn" which is the same as B2, then move (cut + paste) E14:J14 to E2:J2, and continue the loop until moved all the characters in the area C13:AD31 (in other words A13:AD31 only left all empty cells). The loop I want will return the result as shown below.
-----a-----++++
(Update 3/31/2022) Thank you VBasic2008 your code is amazing, sorry to bother you again, indeed I can't understand every single content in your code, so I still can't customize the code to fit my generated data. Currently my excel sheet has generated 169 lines.
This time I have columns from B40:B51 and B127:B138 containing content to search and move.
Screenshot of column B40: B51

The loop I want will return the result as shown below.



