Format related procedures in class MediaFormat (PowerPoint VBA)

This page presents procedures from class MediaFormat related to the theme Format: SampleHeight and SampleWidth


Returns the resolution height of the sample media.

Dim lngSampleHeight As Long
lngSampleHeight = ActiveWindow.RangeFromPoint.MediaFormat.SampleHeight


Returns the resolution width of the media sample.

Dim lngSampleWidth As Long
lngSampleWidth = ActiveWindow.RangeFromPoint.MediaFormat.SampleWidth