Sub aa()irow = Range("A65536").End(xlUp).Rowk = irow + 3For i = 1 To irowicol = Range("IV" & i).End(xlToLeft).ColumnFor j = 2 To icolCells(k, 1) = Cells(i, 1)Cells(k, 2) = Cells(i, j)k = k + 1NextNextEnd Sub
当然可以,vba无所不能