excel使用经验汇总

1. 微软的excel不严格遵循csv格式规范,csv用“,”做分隔符,cell内容本身有“,”的用""扩起来。我真正实践,发现不行。openoffice这点做的是挺规范的。

2. excel中把多个url变成可以点击的链接,参考将URL转换为Excel中的可单击链接,这个是从https://qastack.cn/superuser/157414/how-to-turn-hundreds-of-text-urls-in-excel-into-clickable-hyperlinks 找到的。摘录下来就是需要在excel建立一个宏

Public Sub Convert_To_Hyperlinks()
  Dim Cell As Range
  For Each Cell In Intersect(Selection, ActiveSheet.UsedRange)
    If Cell <> "" Then
      ActiveSheet.Hyperlinks.Add Cell, Cell.Value
    End If 
  Next
End Sub

我是要把"https://console.cloud.baidu-int.com/devops/icafe/issue/Automap-40802/show?source=issue-title",这个变成链接。其实变成 40802,更合适。估计这个需要利用visual basic把数字 40802 从cell.Value中提取出来了。

原文地址:https://www.cnblogs.com/tangxiaosheng/p/15597828.html