I need help with the col_index_num, sometimes it can appear on column 4 and other times on 8, differs from time to time. I need to return the number of column of the active cell after finding its value. Most likely the whole code it's wrong. But on the VLookup function you can get an idea of what im trying to archive.
Dim pn As Range
Dim ws As Worksheet
Dim cn As Long
Worksheets("Entities").Activate
Cells.Find(What:="Part Number", After:=ActiveCell, LookIn:=xlFormulas2, _
LookAt:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=True, SearchFormat:=False).Activate
Set pn = ActiveCell
Set cn = Active.column
Worksheets("Relationships").Activate
Range("P3").Formula = "=VLOOKUP(C2,Entities!$D:PN,cn,0)"
On the