以文本方式查看主题

-  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=63248)

--  作者:winwtj
--  发布时间:2015/1/16 21:49:00
--  [求助]如何去除单元格中的标点符号?
单元格中内容为:”你好?“,123    
转换为:你好123
[此贴子已经被作者于2015-1-16 21:49:48编辑过]

--  作者:y2287958
--  发布时间:2015/1/17 7:54:00
--  
http://www.foxtable.com/help/topics/0610.htm
--  作者:Bin
--  发布时间:2015/1/17 8:40:00
--  
Dim str As String = """你好?"",123"
Dim str2 As String = str
For Each s As String In str
   If Char.IsPunctuation(s) Then
       str2=str2 .Replace(s,"")
   End If
Next
MessageBox.show(str2)

--  作者:winwtj
--  发布时间:2015/1/17 15:37:00
--  
谢谢