Cells(ActiveCell.Row, 2).Resize(, Columns.Count - 1).Insert Shift:=xlDown
The code was tested before I posted it and no sizing errors occurred. If you retyped it (instead of simply copy/pasting it), then maybe you missed the comma? No matter, I am pretty sure this code is not doing what you actually want based on the additional description you just provided.Hm, that line isn't working for me. I'm getting a sizing error.
Your descriptions (the original and this current one) are not entirely clear to me. Can you show us a short (maybe 3 rows and 4 columns) before AND after example of your data so we get a clearer picture of your intent?Hm, that line isn't working for me. I'm getting a sizing error.
I'm trying to insert a new row below the activecell, then pasting the data 1 column to the right.
The charts you posted are fine with one exception... where is the above information located on the worksheet? In other words, how do we indentify which family goes with which letter?Each class is already mapped to a family. (A>f1, B>f2, G>f1)
In order to do what you asked for, we will need access to all the mappings at one time. Do you have a column for that in your original data? If not, do you have an array containing the mapping?I used vlookup to access the Family values from a different workbook. I stored it in a variable f as variant.