Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-23-2017, 03:21 PM
Renatoravalli Renatoravalli is offline Auto resize pict. macro Windows 8 Auto resize pict. macro Office 2013
Novice
Auto resize pict. macro
 
Join Date: May 2017
Posts: 3
Renatoravalli is on a distinguished road
Default Auto resize pict. macro

Hi my name is Renato Ravalli.
I'm a new member of the forum.

I've got a problem with the creation of a macro in word 2013.
I have to insert in a tecnical document, in different points of the document, some pictures jpeg (one or more each time) copied from a generical folder, WITH A FIXED DIMENSION (6x8 cm).

Initially I had to resize every image one by one,
than I created a macro wich, by pressing a button, made the resize; but it is still slow (I have to make it for every picture after the "paste") and I'm trying to make it faster.



I'd like to create a macro that, when one or more jpeg are copied from a folder (ctrl+c), when I paste it (ctrl+v or a button made for this) automatically resize every jpeg copied to 6x8 cm, and also put it into 220 ppi.

Thank you

Sorry for my bad english
Reply With Quote
  #2  
Old 05-23-2017, 06:33 PM
Guessed's Avatar
Guessed Guessed is offline Auto resize pict. macro Windows 10 Auto resize pict. macro Office 2013
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,158
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

Renato

If you want to change the resolution of the image, it is best to modify the images BEFORE you import them into Word. Free image editing tools like IrfanView can modify a folder full of images so that they are all a fixed size and resolution. Then you won't need a macro to modify the images in Word at all. And specialised bitmap editors do a much better job of changing image resolution than Word does.

Note that if the images are not already in the ratio of 6:8 (ie 3:4) then you will need to either crop or distort the image to achieve this exact size.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #3  
Old 05-24-2017, 02:12 AM
macropod's Avatar
macropod macropod is offline Auto resize pict. macro Windows 7 64bit Auto resize pict. macro Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,363
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

A simple way of ensuring pictures have their dimensions constrained in the way you describe is to insert them into a table cell with a fixed height and width. For a macro that automates this for multiple pictures, see: https://www.msofficeforums.com/drawi...ument-all.html
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #4  
Old 05-25-2017, 10:02 AM
Renatoravalli Renatoravalli is offline Auto resize pict. macro Windows 8 Auto resize pict. macro Office 2013
Novice
Auto resize pict. macro
 
Join Date: May 2017
Posts: 3
Renatoravalli is on a distinguished road
Default

thank you mery much. I followed Guessed's indications and it's good.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto resize pict. macro Macro to resize all objects & pictures? Fabulist Word VBA 4 01-19-2017 01:30 AM
Auto numbering macro desireemm1 Word 1 12-10-2015 07:50 PM
Auto resize pict. macro Help Creating Macro to Crop/Resize Images ineedmacrohelp Word VBA 1 08-06-2015 06:46 AM
Auto resize pict. macro WORD Macro - import picture - resize - position - page break - loop Nano07 Word VBA 2 11-02-2011 05:14 AM
VBA Code to auto resize cells when text entered OTPM Excel Programming 0 09-18-2011 04:21 AM

Other Forums: Access Forums

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