Hi Guy's
I am quick new to VBA code and bit rusty.
I am trying to amend the VBA Code my being a fixed last row to a dynamic i.e using the lastrow variable.
I just cannot seem to get the syntax right.
Your help would be greatly appreciated.
I am quick new to VBA code and bit rusty.
I am trying to amend the VBA Code my being a fixed last row to a dynamic i.e using the lastrow variable.
I just cannot seem to get the syntax right.
Your help would be greatly appreciated.
VBA Code:
lastrow = Cells(Rows.Count, 1).End(xlUp).Row
Range("D2").FormulaArray = "=IFERROR(INDEX(Assignment!$H$3:$H$429,MATCH(1,(A2=Assignment!$A$3:$A$429)*($D$1=Assignment!$H$3:$H$429),0)),"""")"
Range("E2").FormulaArray = "=IFERROR(INDEX(Assignment!$D$3:$D$429,MATCH(1,(A2=Assignment!$A$3:$A$429)*($D$1=Assignment!$H$3:$H$429),0)),"""")"
Range("D2:E" & lastrow).FillDown