Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General PowerPoint Questions / September 2006

Tip: Looking for answers? Try searching our database.

duplicate slides in a presentation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Samuel - 07 Sep 2006 12:47 GMT
How can I find out the duplicate slides in a presentation.
Can I sort slides baed on some criteria like ascending order of slide title?
John Wilson - 07 Sep 2006 13:51 GMT
If you run this vba (adapted from Steve Rindsberg's code) then you'll get a
text file in the presentation folder. Open it in word and table > sort
Signature

Sub GatherTitles()
On Error GoTo ErrorHandler
Dim oSlide As Slide
Dim strTitles As String
Dim strFilename As String
Dim intFileNum As Integer
Dim PathSep As String
PathSep = "\"
On Error Resume Next
For Each oSlide In ActiveWindow.Presentation.Slides
   strTitles = strTitles _
   & oSlide.Shapes.Title.TextFrame.TextRange.Text _
   & " Slide: " _
   & CStr(oSlide.SlideIndex) & vbCrLf
   Next oSlide
   On Error GoTo ErrorHandler
intFileNum = FreeFile
strFilename = ActivePresentation.Path _
   & PathSep _
   & Mid$(ActivePresentation.Name, 1, _
   Len(ActivePresentation.Name) - 4) _
   & "_Titles.TXT"
Open strFilename For Output As intFileNum
Print #intFileNum, strTitles
NormalExit:
Close intFileNum
Exit Sub
ErrorHandler:
MsgBox Err.Description
Resume NormalExit
End Sub

Did that answer the question / help?
_____________________________
John Wilson
Microsoft Certified Office Specialist
http://www.technologytrish.co.uk/ppttipshome.html

> How can I find out the duplicate slides in a presentation.
> Can I sort slides baed on some criteria like ascending order of slide title?
Samuel - 09 Sep 2006 08:45 GMT
Thnaks for the solution. This is good work around for my situation.  
After having the slide titles and the numbers one can manually sort them.

> If you run this vba (adapted from Steve Rindsberg's code) then you'll get a
> text file in the presentation folder. Open it in word and table > sort
>
> > How can I find out the duplicate slides in a presentation.
> > Can I sort slides baed on some criteria like ascending order of slide title?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.