Hi
I'm trying set an index match where I have Named the column, however its giving me an error even before I set this to loop.
I am trying to match the data from the Import File worksheet to the Master worksheet.
Thanks in advance
I'm trying set an index match where I have Named the column, however its giving me an error even before I set this to loop.
I am trying to match the data from the Import File worksheet to the Master worksheet.
Code:
Sub INDEXMATCHDATA()
Dim P_REF As Integer
Dim PTYPE As Integer
Dim x As Integer
Sheets("Master").Select
x = Application.WorksheetFunction.Index("Import Data[PTYPE]", _
Application.WorksheetFunction.Match("sheet2!a2", "Import Data[P_REF]", 0))
End Sub
Thanks in advance
Attachments
Last edited by a moderator: