PC Review


Reply
Thread Tools Rate Thread

Variable Axis Length

 
 
Krys
Guest
Posts: n/a
 
      1st Jul 2008
Hi, since I got help on here last time, I was wondering if anyone could help
with this problem...

I have built a spreadsheet to show trends in our results. The macro runs
through selecting the relevant data, sorting then filtering it and then
building a graph to show the trends. As the number of results used in the
chart varies based on the dates entered (ie. between these two dates), the
macro selects an arbitrarily large column length for the data( eg. D2:E5000),
then uses Go To to reduce the selection to the last constant in the selected
area, then builds the chart from this selection. The macro does not seem to
recognise this though and will show the graph using values from D2:E15 as
this was the area selected in the building of the macro. What can I use in
the macro so size of the selection used is fluid and more or less values can
be shown in the chart?

Any help is greatly appreciated.
 
Reply With Quote
 
 
 
 
ShaneDevenshire
Guest
Posts: n/a
 
      1st Jul 2008
Hi,

Please show us the code:


--
Thanks,
Shane Devenshire


"Krys" wrote:

> Hi, since I got help on here last time, I was wondering if anyone could help
> with this problem...
>
> I have built a spreadsheet to show trends in our results. The macro runs
> through selecting the relevant data, sorting then filtering it and then
> building a graph to show the trends. As the number of results used in the
> chart varies based on the dates entered (ie. between these two dates), the
> macro selects an arbitrarily large column length for the data( eg. D2:E5000),
> then uses Go To to reduce the selection to the last constant in the selected
> area, then builds the chart from this selection. The macro does not seem to
> recognise this though and will show the graph using values from D2:E15 as
> this was the area selected in the building of the macro. What can I use in
> the macro so size of the selection used is fluid and more or less values can
> be shown in the chart?
>
> Any help is greatly appreciated.

 
Reply With Quote
 
Jon Peltier
Guest
Posts: n/a
 
      1st Jul 2008
You have to replace reference to "D2:E15" in the macro with a reference to
the range that you really want to use. You may have replaced a reference to
the selected range, then not changed the reference in Chart.SetSourceData.

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


"Krys" <(E-Mail Removed)> wrote in message
news:03435027-F95B-4382-856A-(E-Mail Removed)...
> Hi, since I got help on here last time, I was wondering if anyone could
> help
> with this problem...
>
> I have built a spreadsheet to show trends in our results. The macro runs
> through selecting the relevant data, sorting then filtering it and then
> building a graph to show the trends. As the number of results used in the
> chart varies based on the dates entered (ie. between these two dates), the
> macro selects an arbitrarily large column length for the data( eg.
> D2:E5000),
> then uses Go To to reduce the selection to the last constant in the
> selected
> area, then builds the chart from this selection. The macro does not seem
> to
> recognise this though and will show the graph using values from D2:E15 as
> this was the area selected in the building of the macro. What can I use in
> the macro so size of the selection used is fluid and more or less values
> can
> be shown in the chart?
>
> Any help is greatly appreciated.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Does Access store its data in fixed length or variable length rows Dennis Microsoft Access Database Table Design 2 15th Jan 2010 05:33 AM
I'd like to have the X-axis a fixed length. Ake Microsoft Excel Charting 0 25th Sep 2008 06:42 PM
Change Y-Axis Run length? Phil Smith Microsoft Excel Charting 10 24th May 2007 10:27 PM
Axis length =?Utf-8?B?c21hbGxfd29uZGVyMTE=?= Microsoft Excel Charting 0 15th Jul 2005 04:05 AM
How do I set Line chart y Axis variable X axis value? =?Utf-8?B?Sm9obiBU?= Microsoft Excel Charting 1 18th Apr 2005 05:36 AM


Features
 

Advertising
 

Newsgroups
 


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