Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default x Axes valus

hi
i have a problem and no more ideas to solve it

i have a 3d diagramm: sensor-valus on the z axis, sensor on the y axis
and on the x axis should be the time read out of my excel sheet.
but thereīs the problem, every time i try to put the x axis valus via
VBA i get a runTime error 1004 (cant set Range method of Series
collection objekt).
i tryed it with the macro recorder and geot the same error.

code that sould work but donīt work

Charts("BergeS16").SeriesCollection(1).XValues = "=Sheet4!S1Z1:S41Z1"

Are there any other posibilities to change the x axis valus, or any
ideas were my fault could be?

tx! CU!
Patrick
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default x Axes valus

Patrick -

Try this:

Dim xRange as Range
Set xRange = Worksheets("Data").Cells(1,1).resize(41,1)
Charts("BergeS16").SeriesCollection(1).XValues = xRange

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
http://PeltierTech.com/Excel/Charts/
_______

nextwave66 wrote:

hi
i have a problem and no more ideas to solve it

i have a 3d diagramm: sensor-valus on the z axis, sensor on the y axis
and on the x axis should be the time read out of my excel sheet.
but thereīs the problem, every time i try to put the x axis valus via
VBA i get a runTime error 1004 (cant set Range method of Series
collection objekt).
i tryed it with the macro recorder and geot the same error.

code that sould work but donīt work

Charts("BergeS16").SeriesCollection(1).XValues = "=Sheet4!S1Z1:S41Z1"

Are there any other posibilities to change the x axis valus, or any
ideas were my fault could be?

tx! CU!
Patrick


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default x Axes valus

hi Jon!

thankx for your answer..

but it didnīt work too
Any other idea i can try?
another possibility?

CU!

Patrick



Jon Peltier wrote in message ...
Patrick -

Try this:

Dim xRange as Range
Set xRange = Worksheets("Data").Cells(1,1).resize(41,1)
Charts("BergeS16").SeriesCollection(1).XValues = xRange

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
http://PeltierTech.com/Excel/Charts/
_______

nextwave66 wrote:

hi
i have a problem and no more ideas to solve it

i have a 3d diagramm: sensor-valus on the z axis, sensor on the y axis
and on the x axis should be the time read out of my excel sheet.
but thereīs the problem, every time i try to put the x axis valus via
VBA i get a runTime error 1004 (cant set Range method of Series
collection objekt).
i tryed it with the macro recorder and geot the same error.

code that sould work but donīt work

Charts("BergeS16").SeriesCollection(1).XValues = "=Sheet4!S1Z1:S41Z1"

Are there any other posibilities to change the x axis valus, or any
ideas were my fault could be?

tx! CU!
Patrick

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default x Axes valus

Maybe I misnamed your sheet. Does this work:

Dim xRange as Range
Set xRange = Worksheets("Sheet4").Cells(1,1).resize(41,1)
Charts("BergeS16").SeriesCollection(1).XValues = xRange

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
http://PeltierTech.com/Excel/Charts/
_______

nextwave66 wrote:

hi Jon!

thankx for your answer..

but it didnīt work too
Any other idea i can try?
another possibility?

CU!

Patrick



Jon Peltier wrote in message ...

Patrick -

Try this:

Dim xRange as Range
Set xRange = Worksheets("Data").Cells(1,1).resize(41,1)
Charts("BergeS16").SeriesCollection(1).XValues = xRange

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
http://PeltierTech.com/Excel/Charts/
_______

nextwave66 wrote:


hi
i have a problem and no more ideas to solve it

i have a 3d diagramm: sensor-valus on the z axis, sensor on the y axis
and on the x axis should be the time read out of my excel sheet.
but thereīs the problem, every time i try to put the x axis valus via
VBA i get a runTime error 1004 (cant set Range method of Series
collection objekt).
i tryed it with the macro recorder and geot the same error.

code that sould work but donīt work

Charts("BergeS16").SeriesCollection(1).XValue s = "=Sheet4!S1Z1:S41Z1"

Are there any other posibilities to change the x axis valus, or any
ideas were my fault could be?

tx! CU!
Patrick


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
Sum of retuned valus as digits Vinay Vasu New Users to Excel 5 April 22nd 10 09:19 PM
Sum of retuned valus as digits Vinay Vasu Excel Worksheet Functions 1 April 16th 10 10:49 AM
extract non zero valus from a list. TUNGANA KURMA RAJU Excel Discussion (Misc queries) 4 June 4th 08 01:01 AM
Adjusting the y axes on 2-axes line graphs aqua Charts and Charting in Excel 2 March 3rd 07 04:28 PM
Checking valus in cells Niklas[_3_] Excel Programming 3 August 8th 03 06:59 PM


All times are GMT +1. The time now is 05:12 AM.

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"