Class View (PowerPoint VBA)

The class View represents the current editing view in the specified document window.

Set

To use a View class variable it first needs to be instantiated, for example

Dim vw as View
Set vw = ActiveWindow.View

View class variables can be set using the DocumentWindow.View procedure.

Themes

Some procedures in this class have been grouped together in themes and are described on separate theme pages

Format with its procedures MediaControlsHeight, MediaControlsVisible and MediaControlsWidth
Print with its procedures PrintOptions and PrintOut

Methods

Other Methods

PasteSpecial - Pastes the current contents of the Clipboard into the view represented by the View object.

ActiveWindow.View.PasteSpecial

Properties

DisplaySlideMiniature determines if and when the slide miniature window is displayed automatically.

ActiveWindow.View.DisplaySlideMiniature = msoTrue

MediaControlsLeft returns the distance, in points, from the left edge of the media control bounding box to the left edge of the slide.

Dim sngMediaControlsLeft As Single
sngMediaControlsLeft = ActiveWindow.View.MediaControlsLeft

MediaControlsTop returns the distance, in points, from the top edge of the media control bounding box to the top edge of the slide.

Dim sngMediaControlsTop As Single
sngMediaControlsTop = ActiveWindow.View.MediaControlsTop

Parent returns the parent object for the specified object.

Dim objParent As Object
Set objParent = ActiveWindow.View.Parent

Slide returns or sets a Slide slide that represents the slide that's currently displayed in the specified document window view. Read/write.

Set ActiveWindow.View.Slide =

Type represents the type of view.

Dim pvtType As PpViewType
pvtType = ActiveWindow.View.Type

Zoom returns or sets the zoom setting of the specified view as a percentage of normal size.

ActiveWindow.View.Zoom = 30

ZoomToFit determines whether the view is zoomed to fit the dimensions of the document window every time the document window is resized.

ActiveWindow.View.ZoomToFit = msoTrue