VBSCRIPT remove spaces

I have an Outlook form.  The fields in this form generate a hyperlink to a Web page.  The problem I have is that the field cannot have any spaces.  The spaces need to be converted into HTML code(%20%) ie.  "HELLO THERE" needs to be converted to "HELLO%20%THERE".

I am trying to copy the content of the field with the spaces to a new field without spaces.

Make sense??
Who is Participating?
PstryConnect With a Mentor Commented:
As I understand the problem, you can just simply type in your code:
myString = Replace(myString, " ", "%20")

This will replace all the spaces within the string.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.