我很难找到一种方法来创建一个用VSTO for powerpoint创建另一张幻灯片的链接,有人知道怎么做吗?无法在互联网上找到任何解决方案......
答案 0 :(得分:1)
将此内容从VBA转换为VSTO,你应该很高兴。将其引用传递给要应用链接的形状,以及要链接到的幻灯片。
Sub MakeLink(osh As Shape, oLinkTargetSlide As Slide)
With osh.ActionSettings(1)
.Action = ppActionHyperlink
.Hyperlink.Address = ""
.Hyperlink.SubAddress = oLinkTargetSlide.SlideID & "," & oLinkTargetSlide.SlideIndex & ","
End With
End Sub
您可能希望将oSh
声明为Object
;然后你可以传递Sub
形状或TextRange
来应用链接。