以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  如何把单元格中的回车符删除  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=117393)

--  作者:lihe60
--  发布时间:2018/4/11 19:33:00
--  如何把单元格中的回车符删除
如题
--  作者:有点甜
--  发布时间:2018/4/11 21:23:00
--  

全部删除,参考代码

 

Dim str As String = "你好.29844.9406%“ & vbcrlf & ”Foxtable.44...97"
msgbox(str)
str = System.Text.RegularExpressions.Regex.replace(str, "\\r|\\n", "")
msgbox(str)