PowerPoint) (ActionSetting 物件

含有指定的圖案或文字範圍在投影片放映期間如何反應滑鼠動作的資訊。

註解

ActionSetting 物件是 ActionSettings 集合的成員。 ActionSettings 集合包含一個 ActionSetting 物件代表指定之的物件對於當使用者按一下該投影片放映與一個 ActionSetting 物件代表指定之的物件對於使用者透過其移動滑鼠指標在投影片放映時的應變期間的應變。

如果您設定的 ActionSetting 物件屬性似乎並未生效,請確定您已將 Action 屬性設為適當的值。

範例

使用 ActionSettings (索引) ,其中 index 是 ppMouseClick 或 ppMouseOver,以傳回單一 ActionSetting 物件。 下列範例會設定第三個圖案中文字的按滑鼠動作一張投影片在作用中的簡報中連結到網際網路。

With ActivePresentation.Slides(1).Shapes(3) _ 
        .TextFrame.TextRange.ActionSettings(ppMouseClick) 
    .Action = ppActionHyperlink 
    .Hyperlink.Address = "https://www.microsoft.com" 
End With

屬性

名稱
Action
ActionVerb
AnimateAction
應用程式
Hyperlink
Parent
Run
ShowAndReturn
SlideShowName
SoundEffect

另請參閱

PowerPoint 物件模型參考資料

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。