Public Function getStringBetweenDots(Byval theString as variant)
Dim lngDot as Long
theString = theString & vbNullString ' Deals with empty strings
lngDot = Instr(theString, ".")
If lngDot > 0 Then theString = Mid(theString, lngDot +1) ' Gets rid of stuff before 1st Dot
lngDot = Instr(theString, ".")
If lngDot > 0 Then theString = Mid(theString, 1 , lngDot -1) ' Gets rid of stuff after 2nd Dot
getStringBetweenDots = theString
End Function