I got it found some similar problem :-)
'first convert to lowercase
StrValue = LCase$(StrValue)
'then convert the spaces
StrValue = SpacesToUrl(StrValue)
Function ReplaceCharAtPosition(ByVal StrValue As String, ByVal
Position As Integer, ByVal ReplaceWith As String) As String
Dim StrBegin As String
Dim StrEnd As String
StrBegin = Left$(StrValue, Position - 1)
StrEnd = Right$(StrValue, Len(StrValue) - Position)
ReplaceCharAtPosition = StrBegin & ReplaceWith & StrEnd
End Function
Function SpacesToUrl(ByVal StrValue As String) As String
Dim Ptr as Integer
Ptr = InStr(1, StrValue, " ")
While (Ptr > 0)
StrValue = ReplaceCharAtPosition(StrValue, Ptr, "%20")
Ptr = InStr(1, StrValue, " ")
Wend
SpacesToUrl = StrValue
End Function