可能的话,《URL》会合在一起。 和你一样,还有一个案文箱来研究:
搜索引擎:Ask Jeeves
从技术上讲,有两条。 无论是在VBA中,还是看看其中一项还是两项(或无)工作:
Sub getHyperlinkfromTextRun()
Dim sl As Slide: Set sl = ActivePresentation.Slides(2)
Dim sh As Shape: Set sh = sl.Shapes(1)
Dim tr As TextRange: Set tr = sh.TextFrame.TextRange
Dim URL As String
For i = 1 To tr.Runs.Count
URL = tr.Runs(i).ActionSettings(ppMouseClick).Hyperlink.Address
If Len(URL) > 0 Then
Dim runText As String
runText = tr.Runs(i).Text
Debug.Print "RUN " & i & ": " & runText & ", " & "URL: " & URL
End If
Next
End Sub
Sub getHyperlinkfromTextRange()
Dim sl As Slide: Set sl = ActivePresentation.Slides(2)
Dim sh As Shape: Set sh = sl.Shapes(1)
Dim tr As TextRange: Set tr = sh.TextFrame.TextRange
Debug.Print tr.ActionSettings(ppMouseClick).Hyperlink.Address
End Sub