View Single Post
 
Old 10-18-2015, 12:52 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit 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

Quote:
Originally Posted by FaizanRoshan View Post
Its work good but no as i want, if original picture height > width then after running code its resize on width and crop height with picture size. or if width > height then code resize width only with cell size.
Well, you did say in your first post:
Quote:
fill the target cell(s) without exceeding their boundaries
Unless the aspect ratio is the same as the cell, you cannot fill it in both directions without exceeding the boundaries. But, if that's what you want, change > to <.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]