#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Chart Help

I have a routine which prompts a user for several ranges
of data (one range is for the data and the other range is
for the x-axis labels) to chart and then creates a 3D
surface chart. The problem is I cannot set the chart's
Category (X) axis labels.

The chart object is called NewChart, and I get an "Unable
to set the XValues property of the series class" error
when I use

NewChart.SeriesCollection(1).XValues = XValRange

to set the category (X) axis labels.

The odd thing is I use the same methodology in another
routine which is working.

Any suggestions?

Thanks,
Raul
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 115
Default Chart Help

Raul -

That's not really enough code to allow a diagnostic. Does your other
routine create the same chart type? Are the commands in the same order?

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


Raul wrote:

I have a routine which prompts a user for several ranges
of data (one range is for the data and the other range is
for the x-axis labels) to chart and then creates a 3D
surface chart. The problem is I cannot set the chart's
Category (X) axis labels.

The chart object is called NewChart, and I get an "Unable
to set the XValues property of the series class" error
when I use

NewChart.SeriesCollection(1).XValues = XValRange

to set the category (X) axis labels.

The odd thing is I use the same methodology in another
routine which is working.

Any suggestions?

Thanks,
Raul


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Chart Help

Jon,
The commands were in the same order but the chart types
were different. The ChartType was xlLineMarkers in the
code that worked, and xlSurface in the code that didn't.

Thanks to your suggestion, I was able to work around the
problem by creating the chart with ChartType =
xlLineMarkers and assigning the XValues and then changing
the ChartType to xlSurface as one of the last steps.

I know it isn't a terribly elegant solution, but it is
reasonably effective.

I appreciate the suggestions.

Thanks again,
Raul


-----Original Message-----
Raul -

That's not really enough code to allow a diagnostic.

Does your other
routine create the same chart type? Are the commands in

the same order?

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


Raul wrote:

I have a routine which prompts a user for several

ranges
of data (one range is for the data and the other range

is
for the x-axis labels) to chart and then creates a 3D
surface chart. The problem is I cannot set the

chart's
Category (X) axis labels.

The chart object is called NewChart, and I get

an "Unable
to set the XValues property of the series class" error
when I use

NewChart.SeriesCollection(1).XValues = XValRange

to set the category (X) axis labels.

The odd thing is I use the same methodology in another
routine which is working.

Any suggestions?

Thanks,
Raul


.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 115
Default Chart Help

Raul -

When it comes to Excel, especially Excel charts, elegance is not a
requirement. What works on one chart type may choke for another.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______

Raul wrote:

Jon,
The commands were in the same order but the chart types
were different. The ChartType was xlLineMarkers in the
code that worked, and xlSurface in the code that didn't.

Thanks to your suggestion, I was able to work around the
problem by creating the chart with ChartType =
xlLineMarkers and assigning the XValues and then changing
the ChartType to xlSurface as one of the last steps.

I know it isn't a terribly elegant solution, but it is
reasonably effective.

I appreciate the suggestions.

Thanks again,
Raul


-----Original Message-----


Raul -

That's not really enough code to allow a diagnostic.


Does your other

routine create the same chart type? Are the commands in


the same order?

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


Raul wrote:


I have a routine which prompts a user for several


ranges

of data (one range is for the data and the other range


is

for the x-axis labels) to chart and then creates a 3D
surface chart. The problem is I cannot set the


chart's

Category (X) axis labels.

The chart object is called NewChart, and I get


an "Unable

to set the XValues property of the series class" error
when I use

NewChart.SeriesCollection(1).XValues = XValRange

to set the category (X) axis labels.

The odd thing is I use the same methodology in another
routine which is working.

Any suggestions?

Thanks,
Raul


.


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
Excel 2003 is missing Built-In Custom Chart Types in Chart Wizard Julius Charts and Charting in Excel 2 March 6th 09 04:43 PM
Excel 2003 is missing Built-In Custom Chart Types in Chart Wizard Julius Setting up and Configuration of Excel 1 March 6th 09 01:57 AM
Excel 2003: How to nudge a chart element or shape on a chart? Ted M H Charts and Charting in Excel 5 June 30th 08 07:08 PM
chart from pivot data does not update x-axis bar chart values - bug jason gers Excel Discussion (Misc queries) 0 April 3rd 07 06:34 PM
Double-stacked Bar Chart WITH a Secondary Y Axis Line chart? lpenndorf Charts and Charting in Excel 1 February 7th 07 04:32 PM


All times are GMT +1. The time now is 02:14 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"