I've kind of solved it, the code needs tidying up, but this works.
Sub ping()
Dim PC As String
Dim Pings, timeout As Integer
Dim Ping_Result As String
PC = "PCNAME"
Pings = 1
timeout = 100
Status = CreateObject("WScript.Shell"). _
Exec("%comspec% /c Ping -n " & Pings & " -w " & timeout & " " & PC).StdOut.ReadAll
If InStr(Status, "TTL=") = 0 Then
Ping_Result = " Doesn't Ping"
Else
Ping_Result = " Pings"
End If
MsgBox PC & Ping_Result
End Sub