0
나는 내 마케팅 수업을위한 프로젝트를 진행하고 있습니다. 다음과 같은 오류가 계속 발생하며 해결 방법을 파악할 수 없습니다. "개체 변수 또는 With 블록 변수가 설정되지 않았습니다." 누군가가 이것 좀 봐 주실 래요?! 그것은 매우 감사하게 될 것입니다!색인 일치 Excel VBA, 오류
Dim k as Integer
Dim EndRow As Integer
Dim lookupRange1 As Range
Dim lookupRange2 As Range
Dim lookupValue1 As Integer
EndRow = Range("M" & Rows.Count).End(xlUp).Row
lookupRange1 = Sheets("Data_Main").Range("C2:C50000")
lookupRange2 = Sheets("Data_Main").Range("A2:A50000")
With Application.WorksheetFunction
For k = 2 To EndRow
lookupValue1 = Cells(k, 13).Value
Cells(k, 15).Formula = ".Index(lookupRange1, .Match(lookupValue1, lookupRange2, 0))"
Next k
End With