PDA

View Full Version : Set start and end points in media file using VBA



JXR
03-06-2016, 02:33 AM
Is it possible to use VBA to set the start and end play points of a media file (audio or video) which is imported into PowerPoint. I have all the VBA code running to import and play the files, all working fine. I know I can set the start and end inside PPT But can't find any documentation on how to set start and end using VBA. Thanks.

John Wilson
03-06-2016, 11:27 AM
If ovid is a reference to the shape with the media to start from 1 sec and end at 5


ovid.MediaFormat.EndPoint = 5000
ovid.MediaFormat.StartPoint = 1000

JXR
03-08-2016, 03:59 PM
If ovid is a reference to the shape with the media to start from 1 sec and end at 5


ovid.MediaFormat.EndPoint = 5000
ovid.MediaFormat.StartPoint = 1000