Removing All Spaces in String

后端 未结 7 1355
滥情空心
滥情空心 2021-01-11 13:33

I created a macro for removing all whitespace in a string, specifically an email address. However it only removes about 95% of the whitespace, and leaves a few.

My c

7条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-11 13:56

    And to add to the excellent advice from all the great contributors, try the

    TRIM or LTRIM, or RTRIM and you can read more about these functions here:

    https://msdn.microsoft.com/en-us/library/office/gg278916.aspx

    Now this does not remove embedded spaces (spaces in between the letters) but it will remove any leading and trailing spaces.

    Hope this helps.

提交回复
热议问题