Hello,
I am trying to do an index match from one sheet to the other I am unsure of what I am doing wrong, nothing is populating when I run the code and there are no syntax errors.
I have Sheets("IFS Upload") Referencing to a table from another sheet named Sheets("Category")
My code is shown below and the references I am trying to index match, am I missing a step?
Do I need to also define where the table is?
Please help me.
I am trying to do an index match from one sheet to the other I am unsure of what I am doing wrong, nothing is populating when I run the code and there are no syntax errors.
I have Sheets("IFS Upload") Referencing to a table from another sheet named Sheets("Category")
My code is shown below and the references I am trying to index match, am I missing a step?
Do I need to also define where the table is?
Please help me.
VBA Code:
Dim Ifs As Worksheet
Dim LastRow As Long
Dim Category As Integer
Set Ifs = ThisWorkbook.Sheets("IFS Upload")
LastRow = Cells(Rows.Count, 1).End(xlUp).Row
For x = 2 To LastRow
On Error Resume Next
If Len(Ifs.Range("N" & x).Value) > 0 Then
Ifs.Range("O" & x) = WorksheetFunction.Index(Range("jobtype[Trade]"), WorksheetFunction.Match("N" & x, Range("jobtype[IFS]"), 0))
End If
Next x