Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-05-2013, 05:24 AM
bornslippy bornslippy is offline Generating text output from PowerPoint picture/name slides Windows 7 32bit Generating text output from PowerPoint picture/name slides Office 2007
Novice
Generating text output from PowerPoint picture/name slides
 
Join Date: Dec 2013
Posts: 2
bornslippy is on a distinguished road
Default Generating text output from PowerPoint picture/name slides

Hello all,

I'm not sure how well I can even explain what I am trying to do, but I'll give it a go.

I've set up a PowerPoint slideshow with a lot of images (240) that I want to show in random order. I've used some VB code to randomize the slides (I didn't write it), but what I'm trying to do now is to find a way of returning a list that shows the name and position (order) of each picture (the file name in this case). I can display the picture's name in PowerPoint below each image as there is an option for this when importing the images.

Of course, I can flick through the slides manually and make a note of each name and where it occurs in the sequence, but this is labour intensive as I intend to make quite a few different versions.

I just wonder if there is a quicker and easier method that anyone knows to get the information (text) I need output into a file of some sorts. I suspect it requires programming, which I'm not great at.



Thanks in advance,

Bornlsippy
Reply With Quote
  #2  
Old 12-05-2013, 06:40 AM
JohnWilson JohnWilson is offline Generating text output from PowerPoint picture/name slides Windows 7 64bit Generating text output from PowerPoint picture/name slides Office 2010 32bit
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,912
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

See if this gets you close:

Sub getList()
Dim osld As Slide
Dim oshp As Shape
Dim iFile As Integer
Dim tempPath As String
Dim strReport As String
iFile = FreeFile
tempPath = Environ("TEMP") & "\tempTxt.txt"
For Each osld In ActivePresentation.Slides
For Each oshp In osld.Shapes
If oshp.Type = msoGroup Then
If oshp.GroupItems(1).Type = msoPicture Then
strReport = strReport & "On Slide " & osld.SlideIndex & ": Image name = " & oshp.GroupItems(2).TextFrame.TextRange & vbCrLf
End If
End If
Next oshp
Next osld
Open tempPath For Output As iFile
Print #iFile, strReport
Close iFile
Call Shell("NOTEPAD.EXE " & tempPath, vbNormalFocus)
End Sub
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote
  #3  
Old 12-05-2013, 11:04 AM
bornslippy bornslippy is offline Generating text output from PowerPoint picture/name slides Windows 7 32bit Generating text output from PowerPoint picture/name slides Office 2007
Novice
Generating text output from PowerPoint picture/name slides
 
Join Date: Dec 2013
Posts: 2
bornslippy is on a distinguished road
Default

John - you understood exactly what I meant, and the code does exactly what is needed. Perfect. Many many thanks, it's a great help.

Bornslippy
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Generating text output from PowerPoint picture/name slides A list of questions concerning powerpoint output Conference_Tech PowerPoint 1 05-24-2013 02:54 AM
Printing hi res images from powerpoint to pdf output? miriamallen PowerPoint 0 02-29-2012 09:54 AM
Excess slides in powerpoint theremotedr PowerPoint 6 02-22-2012 05:17 AM
Powerpoint automatically changing picture size when adding a picture (2010) One_Life PowerPoint 7 01-20-2012 06:57 AM
Powerpoint 2003 - slides with Excel text franklyorange PowerPoint 0 08-19-2008 09:30 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:16 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft