Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Excel VBA - Problems with 3D Column Clustered chart

Hello all,
I am having some trouble creating the nice 3D column chart in my macro.
When I code it, the chart always comes out much smaller (the 'walls' part,
not the chart area is smaller). Also, the depth of the 'walls' area is not
deep. Also, the 'walls' area is always tilted too much. I know how to
change the tilt, that's not the problem. But I just can't make the actual
columns part larger, even by increasing the size of the chart area.

The funny thing is that I am able to get a nice looking chart by using the
chart wizard manually. I have also tried recording a macro of the chart
wizard. Still, no luck. Does anyone have any suggestions? Any help would
be appreciated. Here is the code (not the recorded macro, but my own) that
I am using:


With ActiveSheet.ChartObjects.Add _
(Left:=450, Width:=375, Top:=300, Height:=225)
.Chart.SetSourceData Source:=ProgramSheet.Range("N3:O14")
.Chart.ChartType = xl3DColumnClustered
.Chart.HasTitle = True
.Chart.ChartTitle.Characters.Text = "title"
.Chart.Axes(xlCategory, xlPrimary).HasTitle = True
.Chart.Axes(xlCategory, xlPrimary).AxisTitle.Characters.Text = "x
lab"
.Chart.Axes(xlValue, xlPrimary).HasTitle = True
.Chart.Axes(xlValue, xlPrimary).AxisTitle.Characters.Text = "y lab"
.Chart.HasLegend = False
End With

--
Message posted via http://www.officekb.com
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Excel VBA - Problems with 3D Column Clustered chart

Try adding the following line:

..Chart.RightAngleAxes = True

just after defining the chart type

Regards,
Peter T


"Bryan via OfficeKB.com" wrote in message
...
Hello all,
I am having some trouble creating the nice 3D column chart in my macro.
When I code it, the chart always comes out much smaller (the 'walls' part,
not the chart area is smaller). Also, the depth of the 'walls' area is

not
deep. Also, the 'walls' area is always tilted too much. I know how to
change the tilt, that's not the problem. But I just can't make the actual
columns part larger, even by increasing the size of the chart area.

The funny thing is that I am able to get a nice looking chart by using the
chart wizard manually. I have also tried recording a macro of the chart
wizard. Still, no luck. Does anyone have any suggestions? Any help

would
be appreciated. Here is the code (not the recorded macro, but my own)

that
I am using:


With ActiveSheet.ChartObjects.Add _
(Left:=450, Width:=375, Top:=300, Height:=225)
.Chart.SetSourceData Source:=ProgramSheet.Range("N3:O14")
.Chart.ChartType = xl3DColumnClustered
.Chart.HasTitle = True
.Chart.ChartTitle.Characters.Text = "title"
.Chart.Axes(xlCategory, xlPrimary).HasTitle = True
.Chart.Axes(xlCategory, xlPrimary).AxisTitle.Characters.Text = "x
lab"
.Chart.Axes(xlValue, xlPrimary).HasTitle = True
.Chart.Axes(xlValue, xlPrimary).AxisTitle.Characters.Text = "y

lab"
.Chart.HasLegend = False
End With

--
Message posted via http://www.officekb.com



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
Problem with Excel 2007 clustered column chart on log scale mikew Charts and Charting in Excel 1 November 4th 09 09:46 AM
Can I combine a stacked and clustered column chart in Excel Tim Donnelly Charts and Charting in Excel 7 October 8th 09 08:17 PM
Can Excel produce a clustered and stacked column chart? hcollin1 Charts and Charting in Excel 2 July 25th 09 05:05 PM
2d-Column (Clustered Column) chart with Standard Deviation Bars Gary T Charts and Charting in Excel 1 November 28th 08 10:45 PM
Needed: Chart that combines clustered column and stacked column types Gerry Charts and Charting in Excel 3 February 14th 07 02:53 AM


All times are GMT +1. The time now is 10:57 PM.

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

About Us

"It's about Microsoft Excel"