Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Unable to change plot area size

Hello,

I have developed a Pie-chart with VBA in Excel XP.
It creates a Pie-chart but its plot area size is too small.
Furthermore, the Pie-chart does not let me manually change
its size so I can not even record Maco.

I wrote the following code but I got an error "Unable to
set the Height property of the PlotArea Class".

With ActiveChart
.ChartType = xl3DPieExploded
.PlotArea.Height = 155
.PlotArea.Width = 389
End With

Any help is appreciated,
Shinichi
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Unable to change plot area size

The height and width can not exceed the chart size.
Try something like this before your code:
Sub resizePie()

ActiveSheet.ChartObjects("Chart 2").Activate
ActiveChart.ChartArea.Select
Worksheets("Sheet4").ChartObjects("Chart 2").Height =
1500
Range("A1").Select

End Sub
-----Original Message-----
Hello,

I have developed a Pie-chart with VBA in Excel XP.
It creates a Pie-chart but its plot area size is too

small.
Furthermore, the Pie-chart does not let me manually

change
its size so I can not even record Maco.

I wrote the following code but I got an error "Unable to
set the Height property of the PlotArea Class".

With ActiveChart
.ChartType = xl3DPieExploded
.PlotArea.Height = 155
.PlotArea.Width = 389
End With

Any help is appreciated,
Shinichi
.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Increase plot size within Chart area Ropesend Charts and Charting in Excel 3 December 13th 07 02:07 PM
Excel2007 -- Precisely set plot area size? Cassie Charts and Charting in Excel 3 October 5th 07 10:34 PM
Excel Chart Plot Area Auto Size jack Charts and Charting in Excel 4 August 28th 07 01:53 AM
Size of plot area expands when Chart Title is deleted - why? Chuck M Charts and Charting in Excel 2 June 22nd 07 01:05 PM
How to change plot area size of pivot chart juamig Charts and Charting in Excel 3 May 11th 06 12:16 PM


All times are GMT +1. The time now is 09:08 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"