Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA CODE: consolidation of excel sheets


As a very VBA-beginner the tasks I am confronted with are more
challanging than my progress ;-). So I urgently need your pleasant
help!

STARTING POINT:
-in a sub-folder (c:\company_xy\Business_Units\) i do have different
excel-files (each single file represents one business unit in a
company) including
-several sheets (each sheet represents one cost center)
-these sheets - regarding the format - all look the same,
-except: number of sheets per file (=number of cost centers) differs
-these files/sheets contain income statements as follows:
First Column (=y-axis): Description of Income/Expense position (e.g.:
interest revenues, staff costs,...).
first row (=x-axis): timeline[2004, 2005, 2006,...]

-(please see the attached example) -

QUESTION:
How can I merge the figures of each of these tables into one file (i.e.
company_income_statement.xls) in the superordinated folder
(c:\company_xy\company_income_statement.xls)? I.e. all cells in the
defined range (i.e. B2:D8) have to be totalised in the according
sheet.

Can somebody of you guys help me by providing me the according
VBA-code? Thank you in advance and best regards, Q’mark


+-------------------------------------------------------------------+
|Filename: Example_BU.doc |
|Download: http://www.excelforum.com/attachment.php?postid=4986 |
+-------------------------------------------------------------------+

--
questionmark
------------------------------------------------------------------------
questionmark's Profile: http://www.excelforum.com/member.php...o&userid=36096
View this thread: http://www.excelforum.com/showthread...hreadid=558764

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default VBA CODE: consolidation of excel sheets

Hi Questionmark,

Ron de Bruin has an extensive range of sample code at:

http://www.rondebruin.nl/tips.htm

See, for example:

http://www.rondebruin.nl/copy2.htm

and

http://www.rondebruin.nl/copy3.htm


---
Regards,
Norman



"questionmark"
wrote in message
news:questionmark.2aihu0_1152169203.4742@excelforu m-nospam.com...

As a very VBA-beginner the tasks I am confronted with are more
challanging than my progress ;-). So I urgently need your pleasant
help!

STARTING POINT:
-in a sub-folder (c:\company_xy\Business_Units\) i do have different
excel-files (each single file represents one business unit in a
company) including
-several sheets (each sheet represents one cost center)
-these sheets - regarding the format - all look the same,
-except: number of sheets per file (=number of cost centers) differs
-these files/sheets contain income statements as follows:
First Column (=y-axis): Description of Income/Expense position (e.g.:
interest revenues, staff costs,...).
first row (=x-axis): timeline[2004, 2005, 2006,...]

-(please see the attached example) -

QUESTION:
How can I merge the figures of each of these tables into one file (i.e.
company_income_statement.xls) in the superordinated folder
(c:\company_xy\company_income_statement.xls)? I.e. all cells in the
defined range (i.e. B2:D8) have to be totalised in the according
sheet.

Can somebody of you guys help me by providing me the according
VBA-code? Thank you in advance and best regards, Q'mark


+-------------------------------------------------------------------+
|Filename: Example_BU.doc |
|Download: http://www.excelforum.com/attachment.php?postid=4986 |
+-------------------------------------------------------------------+

--
questionmark
------------------------------------------------------------------------
questionmark's Profile:
http://www.excelforum.com/member.php...o&userid=36096
View this thread: http://www.excelforum.com/showthread...hreadid=558764



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA CODE: consolidation of excel sheets


Dear Norman,
Thank you for your immediate answer. The link sent by you looks ver
interesting and seems to be helpful. Let me check this! Kind regards
Q'mar

--
questionmar
-----------------------------------------------------------------------
questionmark's Profile: http://www.excelforum.com/member.php...fo&userid=3609
View this thread: http://www.excelforum.com/showthread.php?threadid=55876

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA CODE: consolidation of excel sheets


Dear Norman,
Thank you for your immediate answer. The link sent by you looks ver
interesting and seems to be helpful. Let me check this! Kind regards
Q'mar

--
questionmar
-----------------------------------------------------------------------
questionmark's Profile: http://www.excelforum.com/member.php...fo&userid=3609
View this thread: http://www.excelforum.com/showthread.php?threadid=55876

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
Consolidation of sheets Prem Kumar Excel Discussion (Misc queries) 3 July 1st 08 02:04 PM
Data consolidation from Multiple Sheets wingale Excel Worksheet Functions 1 April 14th 06 05:25 PM
How to repeat a code for selected sheets (or a contiguous range of sheets) in a Workbook? Dmitry Excel Worksheet Functions 6 March 29th 06 12:43 PM
How to repeat a code for selected sheets (or a contiguous range of sheets) in a Workbook? Dmitry Excel Programming 6 March 29th 06 12:43 PM
Code Consolidation (1) Phil Hageman[_3_] Excel Programming 4 May 10th 04 09:22 PM


All times are GMT +1. The time now is 08:10 PM.

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"