【发布时间】:2016-02-14 08:52:42
【问题描述】:
以下是在每个单词之前放置数字。是否有任何相同的公式可以从电子表格中每个单词的开头删除数字。这是公式how to insert numbers before every word in excel的链接
Sub test()
Dim cl As Range, i&
Set cl = Cells.Find("*")
For i = 1 To WorksheetFunction.CountA(Cells)
If Not cl Is Nothing Then
cl.Value2 = i & "/" & cl.Value2
Set cl = Cells.FindNext(cl)
Else
Exit For
End If
Next i
End Sub
【问题讨论】:
-
我投票结束这个问题,因为这是同一个问题的第三个化身(Excel how can I remove number and slash at the beginning of each word in spreadsheet 和how to insert numbers before every word in excel 的第二部分)。