Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Updating the X and Y Values

Hello, I need to update the X axis labels and Y Values
dynamically. In other words as the spreadsheet changes
my graph will update the X axis and Y axis values. The
Columns don't change so I just use numbers but the Rows
do change so I am trying to use a variable. My two
variables are x1 and x1. I tried the code below but to
no avail. I tried with and without parenthesis. Help!


'Update Graph1
Sheets("Chart2").Select
ActiveChart.SeriesCollection(1).XValues = "=Query!
Rx1C1:Rx2C1"
ActiveChart.SeriesCollection(1).Values = "=Query!
Rx1C5:Rx2C5"

'Update Graph1
Sheets("Chart2").Select
ActiveChart.SeriesCollection(1).XValues = "=Query!R(x1)
C1:R(x2)C1"
ActiveChart.SeriesCollection(1).Values = "=Query!R(x1)C5:R
(x2)C5"

  #2   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Updating the X and Y Values


I meant that my two variables are x1 and x2. I just
tried it with

ActiveChart.SeriesCollection(1).XValues = "=Query!
$A$x1:$A$x2"
ActiveChart.SeriesCollection(1).Values = "=Query!
$E$x1:$E$x2"

and it still doesn't work.
AA
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Updating the X and Y Values

Check out the response in the charting group.

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

wrote:

I meant that my two variables are x1 and x2. I just
tried it with

ActiveChart.SeriesCollection(1).XValues = "=Query!
$A$x1:$A$x2"
ActiveChart.SeriesCollection(1).Values = "=Query!
$E$x1:$E$x2"

and it still doesn't work.
AA


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
Formula Values not Updating dcornett63 Excel Discussion (Misc queries) 1 November 13th 09 11:42 PM
Excel not updating values? Riptide Excel Discussion (Misc queries) 7 August 8th 08 06:46 PM
Linked values not updating James Excel Worksheet Functions 3 June 26th 06 12:42 AM
Values not updating Conan Kelly Excel Worksheet Functions 1 April 15th 06 12:36 AM
cell values not updating Rayasiom Excel Worksheet Functions 1 November 11th 05 10:10 AM


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