Removing All Spaces in String

后端 未结 7 1369
滥情空心
滥情空心 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 14:08

    Because you assume that Selection.Cells includes all cells on the sheet.

    Cells.Replace " ", ""
    

提交回复
热议问题