Sub DeleteAllAudio()
Dim slide As slide
Dim shape As shape
Dim ppt As Presentation
' アクティブなプレゼンテーションを取得
Set ppt = ActivePresentation
' すべてのスライドをループ
For Each slide In ppt.Slides
' スライド内のすべてのオブジェクトを確認
For Each shape In slide.Shapes
' オーディオ(音声)オブジェクトか確認
If shape.Type = msoMedia Then
shape.Delete ' 音声オブジェクトを削除
End If
Next shape
Next slide
' 完了メッセージ
MsgBox "すべての埋め込まれた音声を削除しました。", vbInformation
End Sub
説明
For Each slide In ppt.Slides で全スライドをループ
For Each shape In slide.Shapes でスライド内のすべてのオブジェクトを確認
I am an explorer who ventures across the digital sea in search of gastronomic treasures. In the world of technology, I traverse the sea of keyboards in search of new discoveries. And in the real world, I visit every nook and cranny to find a delicious restaurant worth tantalizing your taste buds.
My mission is to add a little spice to your everyday life, starting with little IT tidbits and ending with foodie spots that fill your heart. I want to bring you topics that you can easily enjoy from the other side of the screen. Here, I'm going to share with you some of the technical tidbits and I will introduce small technical stories and food shops that will leave a lasting impression on your taste buds.
This Web site is truly a fusion point of digital and reality, combining the two worlds of IT and gourmet. I hope you will stop by and take a breather with new discoveries and dusty topics. Come explore the sea of knowledge and enjoy a journey of taste. I will bring you the information that will change your everyday life into something a little more special.