Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Charting - Multiple worksheets 2

Status
Not open for further replies.

crossface

Programmer
Nov 30, 2002
81
US
I have a very simple issue

I want to chart data acroos mutliple worksheets. Is this possible?

For example

WS 1 is where I have the chart

Sheets 2-5 have the same exact worksheet.

How do I chart a cell across these sheets. When I use the charting wizard I always get an Invalid reference

Thanks

Kevin Cotter
Byron Schools
 
Kevin Cotter,

This is a fundamental workbook design issue for you. Similar related data on separate sheets might be an acceptable way to DISPLAY or REPORT data to your user, but it is NOT an acceptable way to STORE the data. The data SOURCE ought not to be segmented, else it makes the kind of reporting that you want to do extremely difficult.

This only way to do what you want is to write a procedure to gather acquire the data into an array and assign the array to the appropriate SeriesCollection.

If it were me, I'd transfer ALL my data into a single table, from which I could chart or report using all the standard reporting tools in Excel

Skip,
[sub]
[glasses] [red]Be advised:[/red] It's been reported that a wee psychic is roaming the countryside.
Small Medium @ Large! [tongue][/sub]
 
I wouldn't be so hard on crossface. Freqently, the design of a spreadsheet is not under your control.

In cases like this, I usually prefer to add an additional sheet to hold the source data for the graph, and use links to the original data to make it convenient graph.
 
pbrodsky,

Except that linking sheets to combine data only works well if the ranges are static.

I'd write a simple VBA routine to suck all the data into one sheet.

I realize that often the design of a workbook has been done by someone else. A savvy programmer may be able to help his users do a better job of workbook design, by pointing out the pitfalls of design to form, which is often a barrier to function, rather then design to function from which form can be easily derived.

Skip,
[sub]
[glasses] [red]Be advised:[/red] It's been reported that a wee psychic is roaming the countryside.
Small Medium @ Large! [tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top