View Single Post
 
Old 07-08-2014, 05:26 AM
JohnWilson JohnWilson is offline Windows 7 64bit Office 2010 32bit
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,913
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

Maybe this EXCEL macro will get you started.
Code:
Sub CaptionPPT()
Dim pptapp As Object
Dim pptpres As Object
Dim lngCount As Long
Dim SW As Long
Const ppAlignCenter = 2
Set pptapp = CreateObject(Class:="PowerPoint.Application")
pptapp.Visible = True
'change the address as required
Set pptpres = pptapp.Presentations.Open("C:\Users\John\Desktop\test.pptx")
For lngCount = 2 To pptpres.slides.Count
With pptpres.slides(lngCount).Shapes.AddTextbox(msoTextOrientationHorizontal, _
pptpres.PageSetup.SlideWidth / 2 - 100, pptpres.PageSetup.SlideHeight - 50, 200, 15)
.TextFrame.TextRange.Text = ActiveSheet.Range("A1").Offset(lngCount - 1, 0)
.TextFrame.TextRange.ParagraphFormat.Alignment = ppAlignCenter
End With
Next
End Sub
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote