Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-23-2017, 03:59 AM
JohnWilson JohnWilson is offline How to align ALL pictures in ALL slides to the top? Windows 7 64bit How to align ALL pictures in ALL slides to the top? Office 2010 32bit
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,914
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

Unfortunately it is not simple. The only way would be to use vba code

Assuming you added one image per slide this code might do it

Code:
Sub fix_album()

Dim osld As Slide
Dim opic As Shape
For Each osld In ActivePresentation.Slides
For Each opic In osld.Shapes
If opic.Type = msoPicture Then
opic.Top = 0
End If
Next
Next
End Sub

__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote
  #2  
Old 06-23-2017, 04:50 AM
buckeyestargazer buckeyestargazer is offline How to align ALL pictures in ALL slides to the top? Windows 10 How to align ALL pictures in ALL slides to the top? Office 2010 64bit
Novice
How to align ALL pictures in ALL slides to the top?
 
Join Date: Jun 2017
Posts: 3
buckeyestargazer is on a distinguished road
Default

Quote:
Originally Posted by JohnWilson View Post
Unfortunately it is not simple. The only way would be to use vba code

Assuming you added one image per slide this code might do it

Code:
Sub fix_album()

Dim osld As Slide
Dim opic As Shape
For Each osld In ActivePresentation.Slides
For Each opic In osld.Shapes
If opic.Type = msoPicture Then
opic.Top = 0
End If
Next
Next
End Sub
Thanks for the reply. Could you explain more how to use vba code (macro?)? I tried something similar but I somehow didn't do it right and couldn't get the macro to run.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I make VBA to "crop to fit" all pictures to picture placeholders across all slides at once? jamesupshaw PowerPoint 3 04-28-2017 09:35 AM
How to align ALL pictures in ALL slides to the top? Pulling Specific Slides from a Deck to create new slides ColinW PowerPoint 2 07-17-2015 11:30 AM
How to align ALL pictures in ALL slides to the top? Difference between Slides.addSlide and Slides.Add? tinfanide PowerPoint 3 12-29-2012 11:55 PM
Inserting slides between existing slides in 2003 watsonstudios PowerPoint 1 05-20-2011 08:15 PM
Can I select different pictures on different slides at the same time or Frogggg PowerPoint 0 08-29-2010 08:43 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:14 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