VBA to change media to play on click

gailb
3StarLounger
Posts: 217
Joined: 09 May 2020, 14:00

VBA to change media to play on click

Post by gailb »

I'm trying to insert a couple of procedures into a ppt to let the user decide whether or not they want to have the media PlayOnEntry or if they want to control the media with On Click.

This works fine for setting the media for PlayOnEntry, but how can I reverse this for On Click? I exchanged the True for False, but then the Start box in the Audio Options just blanks out. Looking to get that start box to show On Click. This is in the Playback tab on the ribbon.

Code: Select all

With .AnimationSettings.PlaySettings
     .PlayOnEntry = True
End With

User avatar
HansV
Administrator
Posts: 75279
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: VBA to change media to play on click

Post by HansV »

Sorry, PowerPoint VBA is too esoteric for me.
Regards,
Hans

gailb
3StarLounger
Posts: 217
Joined: 09 May 2020, 14:00

Re: VBA to change media to play on click

Post by gailb »

No worries. Thank you for looking.