Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 12-11-2012, 08:11 AM
brewsta brewsta is offline Need help making a macro to space images Windows 7 32bit Need help making a macro to space images Office 2010 32bit
Novice
Need help making a macro to space images
 
Join Date: Dec 2012
Posts: 2
brewsta is on a distinguished road
Default

Say i have a 10 page document with text and images on each page, there would be some text in between and all the images would be re-sized using this macro;

Code:
Sub AllPictSize() 
    Dim PecentSize As Integer 
    Dim oIshp As InlineShape 
    Dim oshp As Shape 
     
     'PercentSize = InputBox("Enter percent of full size", "Resize Picture", 175)
     
    For Each oIshp In ActiveDocument.InlineShapes 
        With oIshp 
             '.ScaleHeight = PercentSize
             '.ScaleWidth = PercentSize
             '.ScaleHeight = 175
             '.ScaleWidth = 175
            .Width = 336.24 
            .Height = 252 
            .Range.ParagraphFormat.Alignment = wdAlignParagraphCenter 
        End With 
    Next oIshp 
     
     'For Each oshp In ActiveDocument.Shapes
     'With oshp
     '.ScaleHeight Factor:=(PercentSize / 100), _
     ' RelativeToOriginalSize:=msoCTrue
     '.ScaleWidth Factor:=(PercentSize / 100), _
     ' RelativeToOriginalSize:=msoCTrue
     'End With
     'Next oshp
End Sub
The pictures are centered one on-top of another with 2 images per page. all i need is there to be 2 spaces in-between each picture.

for example:

______bottom of image__________
>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>>>>> 2 spaces in between each image
_______Top of image____________


I appreciate the help.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help making a macro to space images Making Images 300DPI SQLUSA Word 3 08-20-2012 12:23 AM
Need help making a macro to space images Publisher 2003 Help making even spaced dots (Thread has 2 images for examples) Blitz55 Publisher 3 10-29-2010 01:25 PM
Need help making a macro to space images Making a Macro "autoopen" Joshocom Word 1 03-16-2010 05:03 PM
Changing mulitple images sizes with a macro or other FraserKitchell Drawing and Graphics 1 01-05-2010 11:53 PM
Making enlarged images look good in PPT Per PowerPoint 2 03-20-2009 10:08 AM

Other Forums: Access Forums

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