Hi, thank you for your replies.
The current code I have is:
Dim J As Integer
For J = 1 To 5 Step 1
ws.Cells(1 + J, 14).Formula = "=LARGE($K$3:$K$41," & J & ")"
ws.Cells(i + J, 14).NumberFormat = "0.00"
Next J
I have read that I can use:
first = Application.WorksheetFunction.Large(rng,1)
second = Application.WorksheetFunction.Large(rng,2)
third = Application.WorksheetFunction.Large(rng,3)
fourth = Application.WorksheetFunction.Large(rng,4)
fifth = Application.WorksheetFunction.Large(rng,5)
Something like:
Dim i As Integer
For i = 1 to 5
ws.cells(1 + j, 14).Formula = "Application.WorksheetFunction.Large(rng, i)"
Next i
I haven't tried the last code and I don't know if I will work?