Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 09-06-2017, 04:47 PM
macropod's Avatar
macropod macropod is offline Complex VBA Code to Resize Alternating Images at the End of a Mail Merge Windows 7 64bit Complex VBA Code to Resize Alternating Images at the End of a Mail Merge Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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

To constrain an image to fit within a given size, create a single-cell table with a fixed height and width to wherever you want the image to go, then insert the field code into that. The inserted images will resize, at the correct aspect ratio for the picture, to fit the space available. No VBA or post-merge processing required.

To create a single-cell table with a fixed height and width, use Insert|Table and choose one cell. Then, for the:
• rows, set the exact row height under Table Tools>Layout>Properties>Row>Specify Height>Exactly.
• columns, set the preferred column width under Table Tools>Layout>Properties>Columns,
and uncheck the 'automatically resize to fit contents' option under Table Tools>Layout>Properties>Table>Options. You might also want to set the cell margins to 0 all round. It's also a good idea to format the table paragraph with 0 before/after spacing.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Complex VBA Code to Resize Alternating Images at the End of a Mail Merge Complex Mail Merge based on Criteria fairchance Mail Merge 11 08-22-2015 04:32 AM
Complex VBA Code to Resize Alternating Images at the End of a Mail Merge Help with VBA to resize images Yuffster Word VBA 2 01-30-2015 06:05 AM
Complex VBA Code to Resize Alternating Images at the End of a Mail Merge Mail Merge - QR Codes Images Shrinking LWManson Mail Merge 2 08-19-2014 07:47 AM
Complex VBA Code to Resize Alternating Images at the End of a Mail Merge Help with a complex mail merge bekz Mail Merge 6 05-06-2012 07:10 PM
Inserting images into mail merge lorraine_hamilton Mail Merge 0 10-19-2009 09:55 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:25 AM.


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