Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 09-27-2023, 12:01 AM
wuhe wuhe is offline How to enable lock picture aspect ratio when inserting picture for background in MS Word? Mac OS X How to enable lock picture aspect ratio when inserting picture for background in MS Word? Office 2019
Novice
 
Join Date: Sep 2023
Posts: 1
wuhe is on a distinguished road
Wink

Quote:
Originally Posted by flamerozzy View Post
create this macro, one click and all images on the current doc will have locked aspect ratio on:
Sub LockAspectRatioForAllImages()
Dim pic As InlineShape
For Each pic In ActiveDocument.InlineShapes
If pic.Type = wdInlineShapePicture Then
pic.LockAspectRatio = msoTrue
End If
Next pic
End Sub
Thanks so much for posting this method! It really helps me a lot!!! Have a nice day
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
reset aspect ratio of chart objects? LQuinn Word VBA 0 03-10-2021 06:45 PM
Macro to paste a picture, unlock the aspect ratio and change height and width mtwa Word VBA 1 11-13-2019 09:17 AM
How to enable lock picture aspect ratio when inserting picture for background in MS Word? Aspect Ratio for New Template pptdiva PowerPoint 2 01-27-2015 02:30 PM
Aspect Ratio problem naomidlee@gmail.com PowerPoint 0 12-22-2013 04:24 AM
Keeping the aspect ratio Jordan6161 PowerPoint 0 07-22-2011 05:50 PM

Other Forums: Access Forums

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