I'm using Excel 2016 with Windows 10 and I insert a picture in cell B17
and then want to resize it while keeping the top left corner of the picture in the top left corner of cell B17
. Some pictures resize to the bottom left corner while others resize to the top right corner.
I tried using msoScaleFromTopLeft but I still get the same pictures shrunk down to the bottom left or top right.
Here's my macro VBA code:
Range("B17").Select
ActiveSheet.Pictures.Insert(PhotoLocation).Select 'Insert photograph from file.
Selection.ShapeRange.ScaleWidth 0.2, msoFalse, msoScaleFromTopLeft
What am I missing? Can someone please help me with this or suggest an alternative method to do what I want?