我想连接一个带有许多不同部分(变量)的URL,并将其添加到URL的末尾。Powerpoint VBA中的连接超链接
我有一个按钮,当您单击按钮时,它会将您带到使用当前幻灯片的幻灯片索引的特定网站。
当按钮是点击我要它去“google.com/p” + Slide.Index + slide.ID + ActivePresentation.fileName
我知道的语法是不正确的,但希望你得到了GIST。
目前我有这样的代码:提前
Private Sub CommandButton21_Click()
Dim projId AS Integer = 617
Dim URL AS String = "www.google.com"
Dim coID = "m01"
Dim coTitle AS String = "New CC Project"
Dim oSl As Slide
Dim pgId
ActivePresentation.FollowHyperlink _
Address:="http://google.com/p" + oSl.SlideID
NewWindow:=True, AddHistory:=True
End Sub
感谢
谢谢!有效!!! – dHumphrey
不错的工作伙伴;) – moffeltje