помогите(

Модератор: Naeel Maqsudov
Код: Выделить всё
Function RemoveSpaces(Str As String) As String
RemoveSpaces = Trim(Replace(Replace(Str, " ", " "), " ", " "))
End Function
Код: Выделить всё
Function RemoveSpaces(Str As String) As String
RemoveSpaces = Application.WorksheetFunction.Trim(Str)
End Function
Код: Выделить всё
Function RemoveSpaces(iStr As String) As String
Do While InStr(iStr, " ") <> 0: iStr = Replace(iStr, " ", " "): Loop
RemoveSpaces = Trim(iStr)
End Function