Display Custom Show Names through code

A

Andy B

After Shyam helped me yesterday with finding links, I wanted to make sure
that links to custom shows work as well. The links are reported with the
custom show name, but I can not find anything that will let me see if that
custom show name exists through VBA code.

Is it possible?

Thanks for your time!
 
D

David M. Marcovitz

There is probably an easier way, but here is one way:

Sub DoesFooExist()
Dim customShow As NamedSlideShow
Dim itsThere As Boolean
For Each customShow In
ActivePresentation.SlideShowSettings.NamedSlideShows
If customShow.Name = "foo" Then
itsThere = True
End If
Next customShow
If itsThere Then
MsgBox "It's there."
Else
MsgBox "It's not there."
End If
End Sub

--David

David Marcovitz
Author of _Powerful PowerPoint for Educators_
http://www.loyola.edu/education/PowerfulPowerPoint/
 
A

Andy B

David -

Thanks! Should get my hands on an object list for PowerPoint and maybe I
won't have questions like this. I had no idea it would be called a
namedshow. I looked and looked - anyway, thank you for the clue bag. I
appreciate it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top