[英]Add hyperlink to picture using VBA Macro in PowerPoint
I am trying append a hyperlink to an image, on Click, to the Master Slide page of a PowerPoint using VBA/Macros. 我正在尝试使用VBA / Macros在单击时将超链接附加到图像的PowerPoint的“母版幻灯片”页面。 I have added the photo and am now looking for a function that will add 'www.comment.com/connect'
我已经添加了照片,现在正在寻找可以添加“ www.comment.com/connect”的功能
Private Sub commentConnect_Click()
...
End Sub
Should I use the .Hyperlink.Address = "www.comment.com/connect"
function? 我应该使用
.Hyperlink.Address = "www.comment.com/connect"
函数吗?
Assuming you have a reference to the image (or any other shape) in the variable oSh: 假设您在变量oSh中引用了图像(或其他形状):
With oSh
.ActionSettings(ppMouseClick).Hyperlink.Address = "http://www.pptfaq.com"
End With
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.