Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Retrieving Data from Multiple WorkBooks

What I need is a macro that will retrieve data from multiple workbooks
and then take this data and populate a summary sheet. To be more
specific, I need the macro to find every excel workbook in the current
directory (The directory where the summary sheet is located) with a
name like "681(1) Est. *.xls", and then copy the title of the sheet and
a particular range in that file:

Range("I9:I28,I31:I35,I38:I56,I68:I81,I84:I87,I90: I102,I105:I117")

I then need the code to go to Sheet1 of the summary sheet, insert the
previously copied sheet name into Range("G7"), and populate the rows
immediately bellow the title with the other information copied from the
sheet. If there is more than one file the program should know to move
over one column in the summary sheet and perform the same actions
above. If anyone can give me some help that would be great.

Summary sheet Ex:


Item No. Description Unit Est (1) Est (2)
....... ............. ....... .......... ...........
....... ............. ....... Retrieved Retrieved
....... ............. ....... Data Data
....... ............. ....... .......... ...........
....... ............. ....... .......... ...........

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Retrieving Data from Multiple WorkBooks

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



--
Regards Ron De Bruin
http://www.rondebruin.nl



"mastermind" wrote in message ups.com...
What I need is a macro that will retrieve data from multiple workbooks
and then take this data and populate a summary sheet. To be more
specific, I need the macro to find every excel workbook in the current
directory (The directory where the summary sheet is located) with a
name like "681(1) Est. *.xls", and then copy the title of the sheet and
a particular range in that file:

Range("I9:I28,I31:I35,I38:I56,I68:I81,I84:I87,I90: I102,I105:I117")

I then need the code to go to Sheet1 of the summary sheet, insert the
previously copied sheet name into Range("G7"), and populate the rows
immediately bellow the title with the other information copied from the
sheet. If there is more than one file the program should know to move
over one column in the summary sheet and perform the same actions
above. If anyone can give me some help that would be great.

Summary sheet Ex:


Item No. Description Unit Est (1) Est (2)
...... ............. ....... .......... ...........
...... ............. ....... Retrieved Retrieved
...... ............. ....... Data Data
...... ............. ....... .......... ...........
...... ............. ....... .......... ...........



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
Retrieving multiple rows of data Gringarlow Excel Discussion (Misc queries) 2 March 25th 09 05:54 PM
retrieving data from variable workbooks lutan Excel Discussion (Misc queries) 3 August 14th 07 01:08 PM
Data in multiple workbooks Krista Excel Worksheet Functions 1 May 8th 06 10:17 PM
Combining Data from multiple workbooks omniplayer Excel Discussion (Misc queries) 5 January 29th 06 12:18 PM
Retrieving non adjacent data from other workbooks? Sue Excel Worksheet Functions 4 July 24th 05 11:18 AM


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