Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default consolidate workbooks between two other workbooks

I have a budget program for many different companies, which have
different department names. I'm trying to write one macro to work with
all companies. I would like to consolidate all sheets between
worksheets Summary and IncStmt.

Can I do this without naming each sheet, as each company has different
worksheet names?

This is what I currently have;

Selection.Consolidate Sources:=Array( _
"Total!R4C2:R200C26", _
"CarryPlace!R4C2:R200C26", _
"Starling!R4C2:R200C26", _
"Wills!R4C2:R200C26", _
"'328Sid'!R4C2:R200C26", _
"'330Sid'!R4C2:R200C26", _
"'35Wil'!R4C2:R200C26", _
"'53Wil'!R4C2:R200C26", _
"'Jamieson'!R4C2:R200C26"), _
Function:=xlSum, TopRow:=False, LeftColumn:=True,
CreateLinks:=False

Total is always the first sheet, and sometimes it is the only sheet.

TIA
Gerry

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
Help on consolidate worksheets from different workbooks into one Excel newbie Excel Discussion (Misc queries) 2 August 28th 09 07:21 PM
Consolidate Several Workbooks into One jeannie v Excel Worksheet Functions 1 August 25th 06 12:18 PM
consolidate 2 different workbooks JackieB Excel Discussion (Misc queries) 1 July 29th 05 12:02 AM
Consolidate data from several workbooks kwatch Excel Worksheet Functions 0 April 14th 05 09:58 PM
Consolidate Data from other workbooks Mike Fogleman Excel Programming 1 October 24th 04 08:44 PM


All times are GMT +1. The time now is 12:39 PM.

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"