View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
pikus pikus is offline
external usenet poster
 
Posts: 1
Default Replace Space charcter in a string variable

For x = 1 To Len(strVar)
If Mid(strVar, x, 1) = " " Then
Mid(strVar, x, 1) = "_"
End If
Next x

I haven't tested this, but it works in theory. Let me know if you hav
any problems - Piku

--
Message posted from http://www.ExcelForum.com