Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-14-2019, 04:01 PM
DaveP DaveP is offline Align and Distribute Images in Word with a Macro Windows 10 Align and Distribute Images in Word with a Macro Office 2010
Novice
Align and Distribute Images in Word with a Macro
 
Join Date: May 2019
Posts: 11
DaveP is on a distinguished road
Default Align and Distribute Images in Word with a Macro

Hello,

I am trying to get multiple (usually 3) images to align to each other. Basically, they need to be the same height, have a 1 inch border, aligned at the top, equidistant from each other(we can say .5 inches, I haven't decided yet), and all in a group. Here's what I have so far-- you select all 3 images and run this macro:


Sub Test()
Set myShapeRange = Selection.ShapeRange


myShapeRange.Align msoAlignTops, False
With myShapeRange
.Line.Weight = 1
.Line.Visible = msoTrue
.LockAspectRatio = msoTrue
.Height = InchesToPoints(1.5)
End With
Selection.ShapeRange.Group.Select
End Sub


The process is we paste in 3 images and then do all of that stuff individually, so it's a nice time saver (we do it several hundred times a day, the time adds up). The only thing this won't do is distribute them evenly, and with a set distance from each other. I can click "distribute horizontally" in the format menu, but I want to be able to adjust how close the images are to each other (distribute horizontally makes them distribute inside of the total space the images cover originally). Any help is welcomed!! Thanks!



TL;DR: pictures need to be .5 inches away from each other and aligned at their tops
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Align and Distribute Images in Word with a Macro Looking for Macro to Export Images alex20850 Word VBA 2 01-10-2019 06:27 PM
Align and Distribute Images in Word with a Macro How to align this in the word table ValentinaZaharia Word Tables 2 12-06-2018 01:58 PM
Align and Distribute Images in Word with a Macro How to link images by default when dragging images in word maxbaeten Drawing and Graphics 3 09-27-2017 11:34 PM
Align and Distribute Images in Word with a Macro I want to enlarge images in word when I click on them by using a macro MarloweCavendish Word VBA 1 08-16-2016 03:55 PM
Align and Distribute Images in Word with a Macro text to align on Microsoft Word for Mac mrstwitch Word 1 08-15-2015 01:33 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:03 AM.


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