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


I have a databse that is growing daily, and I would like users to via a
list box select a start and finish date therefore creating a new
range.

This new range will now alter a graph to match the users selection.


--
simonweller
------------------------------------------------------------------------
simonweller's Profile: http://www.excelforum.com/member.php...o&userid=28157
View this thread: http://www.excelforum.com/showthread...hreadid=476779

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Graph Ranges


Try something like this

ActiveSheet.ChartObjects("Chart 40").Activate
ActiveChart.SeriesCollection(1).XValues = "=Calculations!R2C66:R"
eRow & "C66"
ActiveChart.SeriesCollection(1).Values = "=Calculations!R2C68:R" & eRo
& "C68"

XValues represents the X-Axis values and

read this as
"=Calculations!R2C66:R" & eRow & "C66"

Sheetname: Calculations
X-Axis Start Value stored at R2C66 (2nd Row and 66th Column)
X-Axis End Value is Calculated and stored in Variable(Integer type
eRow

to find out the last row containing data, you can use the followin
statement
eRow = Worksheets("Calculations").Cells(Rows.Count, 1).End(xlUp).Row

"1" here in the ablove statement is the column (column number) in whic
you want to search for the last row

This should help yo

--
Baap
-----------------------------------------------------------------------
Baapi's Profile: http://www.excelforum.com/member.php...fo&userid=2733
View this thread: http://www.excelforum.com/showthread.php?threadid=47677

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
How to plot Date Ranges on Same Graph JJ Charts and Charting in Excel 2 April 7th 09 11:03 PM
revenue ranges in scatterplot graph sfishy Excel Discussion (Misc queries) 1 November 14th 05 03:28 PM
graph multiple data ranges lindy.coyle Charts and Charting in Excel 1 November 11th 05 01:46 AM
Problem with graph ranges No Such Luck Charts and Charting in Excel 6 December 3rd 04 01:09 PM
Can a graph use array data instead of ranges? y Excel Programming 3 April 29th 04 03:13 AM


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