LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Data Consolidation


Visual Basic 6.0 w/Excel

I would like to use Data|Consolidate to find both the average an
standard deviation for a group of cells for several sheets.

The example below shows the code for 3 sheets, but I have a macro tha
may generate N sheets. Is there a way to generalize the code below t
reflect the variations in the number of sheets to consolidate?


Code
-------------------
Selection.Consolidate Sources:=Array("[Book1]Sheet1!R1C1", _
"[Book1]Sheet2!R1C1", "[Book1]Sheet3!R1C1"), Function:=xlAverage, TopRow:= _
False, LeftColumn:=False, CreateLinks:=Fals
-------------------

--
scantor14
-----------------------------------------------------------------------
scantor145's Profile: http://www.excelforum.com/member.php...fo&userid=1476
View this thread: http://www.excelforum.com/showthread.php?threadid=26390

 
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
data consolidation Stupac Excel Worksheet Functions 1 February 5th 10 04:09 AM
Data Consolidation Johnny1496 Excel Discussion (Misc queries) 3 August 16th 07 12:20 AM
data consolidation baron Excel Discussion (Misc queries) 0 May 21st 07 12:31 AM
Need how-to or example for data consolidation jtroper Excel Worksheet Functions 1 April 24th 06 09:55 PM
data consolidation ktatey Excel Discussion (Misc queries) 0 August 29th 05 08:51 AM


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