LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 229
Default How reference multiple sheets in a formula

You can't, or at least it doesn't look like you can to me. I just
tried this. Wrote a UDF to return a single range object, then used it
in a defined name and tried to put the defined name into the Series
formula of a line... Excel says it's invalid.

Public Function RangeUnion(ParamArray rngs() As Variant) As
Excel.Range
Dim l As Long
Dim retVal As Excel.Range

For l = LBound(rngs) To UBound(rngs)
If retVal Is Nothing Then
Set retVal = rngs(l)
Else
Set retVal = Union(retVal, rngs(l))
End If
Next l

Set RangeUnion = retVal
End Function

You'll probably need to to copy your data into a single worksheet, in
a single column (or row) then make the chart.


On Feb 8, 3:04 pm, Rick wrote:
I want the data to be all in the same series.....

"Bob I" wrote:
make the chart with one, then simply add series to put in data from
other sheets


Rick wrote:


I trying to make a chart with data that that s on multiple sheets How do I
select the data? I searched for an answer for this for 2 hours now....




 
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
PLEASE HELP!! FORMULA TO RETURN A SHEETS NAME/REFERENCE. Chaz Excel Worksheet Functions 4 July 27th 07 06:14 AM
formula reference~muliple sheets Eelinla Excel Discussion (Misc queries) 9 April 30th 07 02:27 AM
IF formula over multiple sheets JaB Excel Discussion (Misc queries) 4 January 22nd 07 12:36 PM
create reference formula that looks through all sheets for matchin BMW Excel Worksheet Functions 2 November 4th 05 04:20 PM
Cell Reference, Multiple Sheets CazMan007 Excel Worksheet Functions 1 July 22nd 05 03:31 PM


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