Article ID: 165216
Article Last Modified on 10/11/2006
Sub CountCustomShows()
Dim lTotalCustomShows As Long
Dim strPrompt As String
'Get the total number of custom slide shows defined in the
'active presentation.
lTotalCustomShows = ActivePresentation _
.SlideShowSettings.NamedSlideShows.Count
'Create the message for the message box.
If lTotalCustomShows = 1 Then
strPrompt = "You have " & lTotalCustomShows _
& " custom show defined."
Else
strPrompt = "You have " & lTotalCustomShows _
& " custom shows defined."
End If
'Display the message.
MsgBox strPrompt, vbExclamation
End Sub
176476 OFF: Office Assistant Not Answering Visual Basic Questions
163435 VBA: Programming Resources for Visual Basic for Applications
Additional query words: 8.00 ppt8 vba vbe macppt mac_ppt ppt98 powerpt
Keywords: kbhowto kbmacro kbprogramming kbdtacode kbcode KB165216