Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Changeing a graph

Hi,
I want to change a graph dynamicly, so it will graph only
the range of value I which it too.

Sheets("Graph Book").Select
Charts("Chart 1").SeriesCollection(1).XValues = Sheets
("Graph Data").Range("B1:IU1")

This give a subscript out of range error, how do I fix it.

Thanks MarkS
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Changeing a graph

Subscript out of range means one of the names you have in your code does not
exist. Example, you don't have a Chart 1 (maybe you have a Chart1 or it
is no longer named chart 1. )

--
Regards,
Tom Ogilvy



Mark Scholes wrote in message
...
Hi,
I want to change a graph dynamicly, so it will graph only
the range of value I which it too.

Sheets("Graph Book").Select
Charts("Chart 1").SeriesCollection(1).XValues = Sheets
("Graph Data").Range("B1:IU1")

This give a subscript out of range error, how do I fix it.

Thanks MarkS



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
Print changeing one cell on form TLR400 Excel Worksheet Functions 1 February 13th 09 11:27 PM
changeing words conditional?? please help laandmc Excel Discussion (Misc queries) 3 August 27th 08 01:17 PM
Changeing keyboard shortcuts GKW in GA Excel Discussion (Misc queries) 1 December 27th 07 02:12 PM
Stop 10-6 from changeing to 6-Oct, or anything else. JadedMan Excel Discussion (Misc queries) 2 November 10th 07 06:57 PM
Changeing cell size in the middle of a worksheet JS Excel Worksheet Functions 1 April 27th 05 03:22 PM


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