Hi All,
Any help appreciated to speed up this macro would be greatly appreciated.
Many Thanks
Sub FTSE()
'
' Macro Currently running at 42 seconds
Application.ScreenUpdating = False
Application.EnableEvents = False
Range("V11").Select
Selection.FormulaArray = _
"=IFERROR(INDEX(Ftse!C[-4],MATCH(MAX(IF(RC[-21]=Ftse!C[-20],Ftse!C[-16])),IF(RC[-21]=Ftse!C[-20],Ftse!C[-16]),0)),0)"
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("W11").Select
Selection.FormulaArray = _
"=IFERROR(INDEX(Ftse!C[-15],MATCH(MAX(IF(RC[-22]=Ftse!C[-21],Ftse!C[-17])),IF(RC[-22]=Ftse!C[-21],Ftse!C[-17]),0)),0)"
Selection.FormulaArray = _
"=IFERROR(INDEX(Ftse!C[-15],MATCH(MAX(IF(RC[-22]=Ftse!C[-21],Ftse!C[-17])),IF(RC[-22]=Ftse!C[-21],Ftse!C[-17]),0)),0)"
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("X11").Select
ActiveCell.FormulaR1C1 = _
"=INDEX(Positions!C[-22],MATCH([@[FundID]],Positions!C[-16],0))"
Range("X11").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.EnableEvents = True
Application.ScreenUpdating = True
End Sub
Any help appreciated to speed up this macro would be greatly appreciated.
Many Thanks
Sub FTSE()
'
' Macro Currently running at 42 seconds
Application.ScreenUpdating = False
Application.EnableEvents = False
Range("V11").Select
Selection.FormulaArray = _
"=IFERROR(INDEX(Ftse!C[-4],MATCH(MAX(IF(RC[-21]=Ftse!C[-20],Ftse!C[-16])),IF(RC[-21]=Ftse!C[-20],Ftse!C[-16]),0)),0)"
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("W11").Select
Selection.FormulaArray = _
"=IFERROR(INDEX(Ftse!C[-15],MATCH(MAX(IF(RC[-22]=Ftse!C[-21],Ftse!C[-17])),IF(RC[-22]=Ftse!C[-21],Ftse!C[-17]),0)),0)"
Selection.FormulaArray = _
"=IFERROR(INDEX(Ftse!C[-15],MATCH(MAX(IF(RC[-22]=Ftse!C[-21],Ftse!C[-17])),IF(RC[-22]=Ftse!C[-21],Ftse!C[-17]),0)),0)"
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("X11").Select
ActiveCell.FormulaR1C1 = _
"=INDEX(Positions!C[-22],MATCH([@[FundID]],Positions!C[-16],0))"
Range("X11").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.EnableEvents = True
Application.ScreenUpdating = True
End Sub