あなたは列Hに顧客リストを配置した場合、あなたが望んでいたとして、これはシート2にテーブルをコピーするには:
Sub foo()
LastRow = Sheet1.Cells(Sheet1.Rows.Count, "H").End(xlUp).Row ' Count Column H as that's where the customer list is
For i = 2 To LastRow 'loop from row 2 to the last on column H
NewCustomer = Sheet1.Cells(i, 8).Value 'get the customer Name 8 being Column H
LastRow2 = Sheet2.Cells(Sheet2.Rows.Count, "A").End(xlUp).Row + 1 'find the next free row in Sheet2
Sheet1.Range("A1:C4").Copy Destination:=Sheet2.Range("A" & LastRow2) 'paste the range into Sheet2
Sheet2.Range("A" & LastRow2).Value = NewCustomer 'Replace the Customer Name
Next i
End Sub
それをやりました。どうもありがとうございます!真剣にそれを感謝します。 – user3047983
心配しない...ちょうどあなたが何回もコピーするオプションを望んでいたことに気がついた...ソートされていますか?または私の答えを更新する必要がありますか? – Xabier
私はそれを選別しましたが、提供してくれてありがとう!心から感謝する – user3047983