mopno1

首先把所有的数字录入(或者导出为)井号+数字的格式,比如“#3333333323424234234234”,然后运行下面的宏:

Sub Num2Text()
    If Not TypeOf Application.Selection Is Range Then
        MsgBox "You must select cells!"
        Return
    End If
    
    For Each cell In Application.Selection.Cells
        If cell.Text <> "" Then
              cell.FormulaR1C1 = "\'" + Replace(cell.Text, "#", "")
        End If
    Next
End Sub

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-07-03
  • 2021-12-13
  • 2022-02-16
  • 2021-10-19
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-23
  • 2022-12-23
  • 2021-10-18
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案