--3q
 
 

 

\'宏操作

Sub 复制超级链接()

For a = 1 To 100 \'这里控制读取A列的第1到10行,你根据自已的要求修改一下起始和结束行数
    If Cells(a, 1).Hyperlinks.Count > 0 Then Cells(a, 2).Value = Cells(a, 1).Hyperlinks.Item(1).Name

    If Cells(a, 1).Hyperlinks.Count > 0 Then Cells(a, 3).Value = Cells(a, 1).Hyperlinks.Item(1).Address
    
Next

End Sub
\'自定义公式法
Function geturl(c As Range) As String
    geturl = c.Hyperlinks(1).Address
End Function

Function getname(c As Range) As String
getname = c.Hyperlinks(1).Name
End Function

 

分类:

技术点:

相关文章:

  • 2021-11-13
  • 2022-12-23
  • 2021-07-27
  • 2022-12-23
  • 2021-09-19
  • 2021-11-05
  • 2022-01-15
猜你喜欢
  • 2021-12-19
  • 2022-12-23
  • 2021-09-13
  • 2022-12-23
  • 2021-12-13
  • 2021-07-30
  • 2022-01-18
相关资源
相似解决方案