私の作品次のコードを、持っているが、少し遅いですを使用してVLOOKUPエクセル、私は同じですが、使用して配列をしたいと思っ遅さのVBAは、配列
Sub AddValues()
Dim Srng As Range
Dim search_value As Variant
PG = "Data"
Ln = 2
Set Srng = Worksheets("Coniguration").Range("_Configuration")
LastRow = Worksheets("Data").Range("A1").CurrentRegion.Rows.Count
For Ln = 2 To LastRow
search_value = Val(ActiveWorkbook.Sheets(PG).Cells(Ln, "A").Value)
ActiveWorkbook.Sheets("Data").Cells(Ln, "CA").Value = Application.VLookup(search_value, Srng, 3, False)
ActiveWorkbook.Sheets("Data").Cells(Ln, "CB").Value = Application.VLookup(search_value, Srng, 4, False)
ActiveWorkbook.Sheets("Data").Cells(Ln, "CC").Value = Application.VLookup(search_value, Srng, 5, False)
ActiveWorkbook.Sheets("Data").Cells(Ln, "CD").Value = Application.VLookup(search_value, Srng, 6, False)
ActiveWorkbook.Sheets("Data").Cells(Ln, "CF").Value = Application.VLookup(search_value, Srng, 7, False)
Next Ln
End Sub
今、あなたは "私"の試合に参加しています;) –