excel 2016 搜索和替换换行符
excel 2016 search and replace linebreaks
我正在寻找如何在 excel 2016 年搜索和替换中断的解决方案。我尝试搜索
\n
以及
ctrl + j
这对我不起作用。
Excel中有两个hard return,试试:
Sub ThePointOfNoReturn()
Dim s1 As String, s2 As String, s3 As String
s1 = Chr(10)
s2 = Chr(13)
s3 = "whatever"
Cells.Replace What:=s1, Replacement:=s3
Cells.Replace What:=s2, Replacement:=s3
End Sub
编辑#1:
找到 "other" return 包含在 Chris Neilsen 的回答中:HERE
我正在寻找如何在 excel 2016 年搜索和替换中断的解决方案。我尝试搜索
\n
以及
ctrl + j
这对我不起作用。
Excel中有两个hard return,试试:
Sub ThePointOfNoReturn()
Dim s1 As String, s2 As String, s3 As String
s1 = Chr(10)
s2 = Chr(13)
s3 = "whatever"
Cells.Replace What:=s1, Replacement:=s3
Cells.Replace What:=s2, Replacement:=s3
End Sub
编辑#1:
找到 "other" return 包含在 Chris Neilsen 的回答中:HERE