Sub lkup()
Dim rng As String
rng = Range("A1", Range("A1").End(xlToRight).End(xlDown)).Select
Dim count As Integer
count = Application.WorksheetFunction.Match("City", Sheets("carrierresponse_list").Rows(1), 0)
MsgBox count
Range("B2") = WorksheetFunction.VLookup(Range("A2").Value, Sheets("carrierresponse_list").Range("A1:HS137"), count, 0)
End Sub
I am getting error Run-time error '1004': Unable to get the VLookup property of the WorksheetFunction class
Plss helpp!!!!
Dim rng As String
rng = Range("A1", Range("A1").End(xlToRight).End(xlDown)).Select
Dim count As Integer
count = Application.WorksheetFunction.Match("City", Sheets("carrierresponse_list").Rows(1), 0)
MsgBox count
Range("B2") = WorksheetFunction.VLookup(Range("A2").Value, Sheets("carrierresponse_list").Range("A1:HS137"), count, 0)
End Sub
I am getting error Run-time error '1004': Unable to get the VLookup property of the WorksheetFunction class
Plss helpp!!!!