Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-14-2015, 03:27 AM
shaivya1998 shaivya1998 is offline A macro needed to crop to fit all images at once Windows 8 A macro needed to crop to fit all images at once Office 2013
Novice
A macro needed to crop to fit all images at once
 
Join Date: Aug 2015
Posts: 5
shaivya1998 is on a distinguished road
Default


Quote:
Originally Posted by JohnWilson View Post
Not sure I really understand but maybe

Code:
Sub cropFit()
Dim osld As Slide
Dim oshp As Shape
On Error Resume Next
Set osld = ActiveWindow.View.Slide
If Not osld Is Nothing Then
For Each oshp In osld.Shapes
If oshp.Type = msoPlaceholder Then
If oshp.PlaceholderFormat.Type = ppPlaceholderPicture Then
oshp.Select
CommandBars.ExecuteMso ("PictureFitCrop")
End If 'picture placeholder
End If 'placehoder
Next oshp
End If ' Slide selected
End Sub


It isn't working with picture layouts.
Reply With Quote
Reply

Tags
crop to fit, macros



Similar Threads
Thread Thread Starter Forum Replies Last Post
A macro needed to crop to fit all images at once Help Creating Macro to Crop/Resize Images ineedmacrohelp Word VBA 1 08-06-2015 06:46 AM
A macro needed to crop to fit all images at once ***help*** macro needed PokerBob Excel 8 03-18-2015 02:57 PM
Macro Needed to bold specific lines and Macro to turn into CSV anewteacher Word VBA 1 05-28-2014 03:59 PM
Check box macro help needed Aflac Word 4 03-24-2012 07:11 PM
A macro needed to crop to fit all images at once Callout macro needed - Help please Peter Denly Word VBA 19 07-20-2011 03:30 AM

Other Forums: Access Forums

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