Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 08-11-2020, 01:42 AM
JohnWilson JohnWilson is offline Putting file name of an imported image onto a slide Windows 10 Putting file name of an imported image onto a slide Office 2016
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,914
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

As far as I know there's no simple way to read the description.

This should do a better job of placing the text. USE A COPY!

Code:
Sub add_Caption()

Dim L As Long
Dim strAlt As String
Dim SH As Long
Dim SW As Long
SH = ActivePresentation.PageSetup.SlideHeight
SW = ActivePresentation.PageSetup.SlideWidth
' kill old text
For L = 1 To ActivePresentation.Slides.Count
If ActivePresentation.Slides(L).Shapes.Count = 2 Then
If ActivePresentation.Slides(L).Shapes(2).HasTextFrame Then _
ActivePresentation.Slides(L).Shapes(2).Delete
End If
strAlt = ActivePresentation.Slides(L).Shapes(1).AlternativeText
If Not strAlt = "" Then
With ActivePresentation.Slides(L).Shapes.AddLabel(msoTextOrientationHorizontal, SW / 2 - 100, SH - 40, 200, 20)
.TextFrame.TextRange = strAlt
.Left = SW / 2 - .Width / 2
End With
End If
Next L
End Sub
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Putting writing next to an image on Word for CV HELP :(! ParisP Word 3 05-29-2015 09:53 AM
Putting file name of an imported image onto a slide putting image file into a cell of a table hklein Word VBA 1 04-19-2013 03:34 AM
Imported Image Quality between 2007 & 2010 DaleM Word 5 04-24-2012 12:54 AM
Putting file name of an imported image onto a slide slide image wont copy with text to new slide lewis.mulhollen PowerPoint 1 12-17-2011 03:17 AM
Putting file name of an imported image onto a slide Putting an image with hyperlink to certain slides spiffmonkey1 PowerPoint 1 07-17-2011 03:58 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:56 PM.


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