I build excel chart via VBA and need to know what is the property to set angle for ticklabel on X axis. I tried to record a macro but didn't get any code recorded.
Thanks in advance.
I build excel chart via VBA and need to know what is the property to set angle for ticklabel on X axis. I tried to record a macro but didn't get any code recorded.
Thanks in advance.
Last edited by jnevada; 01-06-2009 at 01:02 PM.
values between +/- 90![]()
Activesheet.chartobjects(1).Chart.Axes(xlCategory).TickLabels.Orientation = 22
![]()
With ActiveSheet.ChartObjects(1).Chart With .SeriesCollection(1) .Smooth = True End With End With
Thanks, Andy.
But I got error on this one:
Do you know why?![]()
Dim aveSeries As Series For Each aveSeries In objChart.SeriesCollection aveSeries.Delete Next aveSeries Set aveSeries = objChart.SeriesCollection.NewSeries With aveSeries .Formula = "=Series(Chart_data!A2,Chart_data!$A$3:$A$15, Chart_Data!$E$3:E$15, 1)" .Smooth = True 'error, "this property is not valid for this chart type" End With
no idea. can you post example workbook.
When I create a test file the code bombs on the .Formula line
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks