========================================
Function getpostcode (value)
dim leng As Integer
dim pc As String
For
leng=1 To len (value)
pc=mid(value,leng,1)
End if
If Is Numeric (pc) Then
pc=mid(value, leng,2)
End If
...........................
If Is Numeric (pc) =5 Then
getpostcode=pc
leng=Len (value) + 1
End If
Next leng
End Function
=========================================
I really hope there's someone out there can help me to correct the function. Thanks for your attention


