2012-08-03 54 views

回答

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 

你可能反而要聲明oShObject;那麼您可以通過Sub形狀或TextRange將鏈接應用於。

+0

完美:)非常感謝你 – 2012-08-05 13:11:34

相關問題