Function VQ(x$) As String
Dim j&, y$, r$, c$, s$
x = Application.Trim(Replace(x, " L", "L"))
For j = Len(x) To 2 Step -1
If Mid(x, j, 2) Like "#L" Then
y = Left(x, j + 1): Exit For
End If
Next j
If y = "" Then Exit Function
y = Chr(255) & y
y = Application.Trim(y)
For j = Len(y) To 1 Step -1
c = Mid(y, j, 1): s = Mid(y, j - 1, 1)
If InStr(1, "0123456789 x.+L,", c, vbBinaryCompare) = 0 Then Exit For
r = c & r
If InStr(1, "0123456789 x.+L,", s, vbBinaryCompare) = 0 Then Exit For
Next j
VQ = Trim(r)
End Function