Share via

Lock Aspect Ratio not working properly

Anonymous
2019-11-21T08:57:18+00:00

Lock Aspect ratio for pictures in Excel does not seem to be working. Having ticked-on (enabled) "Lock aspect ratio" I am still able to increase or decrease the picture height without the width following.

The same goes for pictures imported and formatted using VBA. It seems to be a new issue. I'm running a piece of VBA code which imports, handles and resizes pictures which is dependent on Lock aspect ratio to be working (As width is being changed assuming the height will follow due to a locked aspect ratio). I have not had this issue with the exact same VBA code about 1-2 months ago.

I.e. I'm having the issue both when handling pictures manaully and using VBA code.

Any suggested work-arounds?

Is this a bug in a recent Office-update?

I'm using Microsoft Office 365 ProPlus

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Anonymous
    2019-12-01T06:04:46+00:00

    what Locking aspect ratio does is if you increase the size of the image height, it also increases the width relative to the ratio of the height. What its for is so that the image don't look narrow or fat when one of the size dimension changes. It does not mean the image cannot be resized.

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments
  2. Andreas Killer 144.1K Reputation points Volunteer Moderator
    2019-12-01T08:05:55+00:00

    The same goes for pictures imported and formatted using VBA. It seems to be a new issue. I'm running a piece of VBA code which imports, handles and resizes pictures which is dependent on Lock aspect ratio to be working (As width is being changed assuming the height will follow due to a locked aspect ratio). I have not had this issue with the exact same VBA code about 1-2 months ago.

    Please try my code from this post:

    https://answers.microsoft.com/en-us/msoffice/forum/all/importing-and-arranging-images-in-excel-with-vba/7b13257e-addb-4994-9bcb-1ccb3bdf0d55

    What happens?

    Andreas.

    Was this answer helpful?

    0 comments No comments