Paste, rotate and move image

VTBigDawg

New Member
Joined
Jan 7, 2011
Messages
1
I need to paste an image (in this case a copy of a chart) into another worksheet, rotate that image -90 degrees and move it to the top left corner of the worksheet (Cell "A1"). This seems like it should be fairly straight forward, but I am running into some issues. If I paste the image to Cell "A1" and rotate it, the image becomes distorted. I can easily fix this by setting the height and width, but I cannot get the image to move all the way to the left. It almost seems like when I paste the image to a cell and then rotate it the "origin" of the image remains the top, left of the cell not the top, left of the image. Because of this I can't move the image all the way to the left of Cell "A1" because the .ShapeRange.Left cannot be negative.

Any help would be appreciated.

Sheets(ChartSheets(5)).Select
ActiveSheet.ChartObjects(1).Activate
ActiveChart.CopyPicture
Sheets("TEST").Select
Range("A1").Select
ActiveSheet.PasteSpecial Format:="Picture (PNG)", Link:=False, _
DisplayAsIcon:=False

With Selection
.ShapeRange.Rotation = 270
.ShapeRange.Top = Range("A1").Top
.ShapeRange.Left = Range("A1").Left
End With
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Forum statistics

Threads
1,214,652
Messages
6,120,746
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top