Resizing Charts

  • Thread starter Thread starter Andy
  • Start date Start date
A

Andy

Hi all,

I want to resize a chart in excel so it will fit a region on a sheet,
say A1:M17.

Besides using the mouse or the format chart > size option to
accomplish this is there any other way. Something perhaps a little more
sophisticated in that it can rezise to certain coordination points.

Cheers,

Andy.
 
Hi,

You can use the mouse and ALT key to get the chartobject to align to
cell edges. Drag the chart over A1 and press ALT to set Top and Left.
Then grab the bottom right resize handle and when over M17 press ALT to
align with the bottom corner of the cell.

To do it with code try,

With ActiveChart.Parent
.Left = Range("A1:M17").Left
.Top = Range("A1:M17").Top
.Width = Range("A1:M17").Width
.Height = Range("A1:M17").Height
End With

Cheers
Andy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top