Article ID: 161123
Article Last Modified on 10/11/2006
Sub SeeView()
Dim CurrentView As Single
' Store the current view.
CurrentView = ActiveWindow.ViewType
Select Case CurrentView
Case ppViewHandoutMaster
MsgBox "You are in the Handout Master View."
Case ppViewNotesMaster
MsgBox "You are in the Notes Master View."
Case ppViewNotesPage
MsgBox "You are in Notes Page View."
Case ppViewOutline
MsgBox "You are in Outline View."
Case ppViewSlide
MsgBox "You are in Slide View."
Case ppViewSlideMaster
MsgBox "You are in Slide Master View."
Case ppViewSlideSorter
MsgBox "You are in Slide Sorter View."
Case ppViewTitleMaster
MsgBox "You are in Title Master View."
Case Else
MsgBox "Invalid Type."
End Select
End Sub
176476 OFF: Office Assistant Not Answering Visual Basic Questions
163435 VBA: Programming Resources for Visual Basic for Applications
Additional query words: 97 8.00 kbmacro ppt8 vba vbe
Keywords: kbcode kbdtacode kbhowto kbmacro kbprogramming KB161123