我想获取 PowerPoint 中带有超链接的形状。
我将使用 pdf.js 将 powerpoint 显示为 pdf,并且需要在渲染的 pdf 上使用具有正确大小形状的覆盖 html 来附加超链接。
但如果我尝试使用该LinkFormat.SourceFullName方法,它会抛出错误
无效的请求
我已经用明确链接的图像和形状对其进行了测试。另外,我链接的形状的类型是 autoShapeTypes。
我使用 Office 356。我主要对演示文稿中幻灯片的链接感兴趣。我可以通过 pptSlide.Hyperlinks(i) 及其子地址访问它们,但是如何获得该链接的引用形状?
任何想法为什么形状不会显示为链接对象以及我如何能够从形状中获取链接?
Dim pptPresentation As Presentation
Dim pptSlide As Slide
Dim pptShape As Shape
Dim i As Integer
dim linkstring as String
Dim hl As Hyperlink
'Set the variable to the PowerPoint Presentation
Set pptPresentation = ActivePresentation
'Loop through each slide in the presentation
For Each pptSlide In pptPresentation.Slides
'Loop through each shape in each slide
For …Run Code Online (Sandbox Code Playgroud)