why does the vba vlookup code is not able to populate all the data as compared to keying in the manual vlookup formula? 
Sub vlook()
Dim sSht As Worksheet
Dim pSht As Worksheet
Dim PLastRow As Long
Dim dataLastRow As Long
Dim rng As Range
Dim i As Long
Set sSht = ThisWorkbook.Worksheets("summarised_table")
Set pSht = ThisWorkbook.Worksheets("Pivot")
dataLastRow = pSht.Range("A" & Rows.Count).End(xlUp).Row
PLastRow = sSht.Range("A" & Rows.Count).End(xlUp).Row
Set rng = sSht.Range("A2:B" & dataLastRow)
For i = 2 To PLastRow
On Error Resume Next
pSht.Range("B" & i).Value = Application.WorksheetFunction.VLookup( _
pSht.Range("A" & i).Value, rng, 2, False)
Next i
End Sub