Format related procedures in class MediaFormat (PowerPoint VBA)

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

SampleHeight

Returns the resolution height of the sample media.

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

SampleWidth

Returns the resolution width of the media sample.

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