Sub test()
Dim i&, xR As Range, T$
For i = 9 To [FMC!A65536].End(xlUp).Row
Set xR = [FMC!A1].Cells(i, 1)
If xR = "" Or xR = T Then GoTo 101
[FMC!1:1].Copy
xR.Insert Shift:=xlDown
xR(0, 2) = "Product"
xR(0, 4) = xR
T = xR: i = i + 1
101: Next
[FMC!A:A].EntireColumn.Delete
End Sub作者: v03586 時間: 2016-2-15 01:00