Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default VBA - extract a value from many spreadsheets

I have several thousand spreadsheets, one each in a path (example) of
\level1\level2\Year\Month\Folder\file.xls. I need a macro that will
open each file.xls, copy cell G9 and past it in a "summary" file cell
A1. Then go to next file, copy G9 into A2, etc. The copy/paste part
seems pretty straightforward, and loop is obvious, but I have no idea
how to write code that would generically do this on every xls file in
this many branched path tree. Is it possible? I'm a VBA novice, and
appreciate any help.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,123
Default VBA - extract a value from many spreadsheets

Hi Mike

You can also create links
http://www.rondebruin.nl/summary2.htm

Or if you want to open the files see
http://www.rondebruin.nl/copy3.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


wrote in message oups.com...
I have several thousand spreadsheets, one each in a path (example) of
\level1\level2\Year\Month\Folder\file.xls. I need a macro that will
open each file.xls, copy cell G9 and past it in a "summary" file cell
A1. Then go to next file, copy G9 into A2, etc. The copy/paste part
seems pretty straightforward, and loop is obvious, but I have no idea
how to write code that would generically do this on every xls file in
this many branched path tree. Is it possible? I'm a VBA novice, and
appreciate any help.

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
Can Excel Spreadsheets be saved as Microsoft Works spreadsheets? EXCEL WORKS CONFUSED Excel Discussion (Misc queries) 4 August 18th 06 11:21 PM
How can I extract each Max key value ? diglas1 via OfficeKB.com New Users to Excel 2 May 31st 06 11:06 PM
Fomula to extract from other spreadsheets saidb New Users to Excel 1 May 23rd 06 12:20 PM
Extract Unique Values, Then Extract Again to Remove Suffixes Karl Burrows Excel Discussion (Misc queries) 23 June 25th 05 10:37 PM
How to extract cells from multiple spreadsheets into one new spreadsheet Guy New Users to Excel 3 March 14th 05 02:14 PM


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