Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-22-2017, 12:34 PM
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 How to align ALL pictures in ALL slides to the top?

I have created a presentation in PPT 2010 and inserted a photo album with 175 pictures on different slides. I simply want to align all the pictures on all the slides to the top of the slide. But I can find no way to do this in a "batch" way so that I don't have to manually go through all 175 slides to align the pics.

How can I align all pictures to the top of all slides at the same time?!?!?!



This is the kind of thing that drives me nuts about software. You can't find the simplest things...
Reply With Quote
  #2  
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,912
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
  #3  
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
  #4  
Old 06-23-2017, 04:56 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,912
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

1. copy just the code from line Sub fix_album to End Sub
2. Use a copy of your presentation just in case!
3. In PPT Alt f11 to open the VB editor
4. Insert >> Module
5. paste in the code
6. f5 to run the code
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote
  #5  
Old 06-23-2017, 04:59 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

THANKS!!! That did it. Saved me tons of time.
Reply With Quote
  #6  
Old 06-23-2017, 07:46 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,912
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

Thanks for letting us know and welcome to the world of macros!
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote
  #7  
Old 06-24-2017, 08:48 PM
Petri Petri 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 2013
Novice
 
Join Date: Apr 2017
Posts: 7
Petri is on a distinguished road
Default

Hi, there's also a third-party app letting you to align the pictures in your PowerPoint presentation, having one or several pictures per page arranged automatically and more:

http://www.norsumarketing.com.sg/ima...powerpoint.php

There is a free full featured trial version available.
For aligning the pictures specifically to top, select Edit/Settings/Top Center.

(Disclaimer: I am the author)

Cheers,
Petri
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 12:14 PM.


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