Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Merge Data with Query Option

I have mutiple workbooks in a folder. All workbook data is on 'Sheet1' and
have the same format.
Row 1 contains headers.
Column A2:A20 contains dates
Column B2:B20 contains reference #'s such as 1356, 1378, 1478 etc
Column C2:C20 contains data pertaining to the Reference #.

How can I set up a macro on a master workbook that will pull the data from
all workbooks in the folder based on the information entered on the Master
Workbook.
As an example, on Master Workbook, Sheet1, A:1 = 1356, then all instances of
1356 and related data from all workbooks in the folder would be displayed on
the Master Workbook?

Your expertise, as always is appreciated

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,344
Default Merge Data with Query Option

Hi,

If all the workbooks are open you can use the INDIRECT function, but this
function does not work against closed files.

I suspect you are going to need to create a macro. The macro could build a
formula that references the cells or it could bring in the value without
links. It all depends on what you want.

If you want to create formulas in cell, then open one of the workbooks and
create the formula by pointing and clicking. Then close the file to which
the formula is linked. Select the cell with the formula and turn on the
macro recorder. Press F2, Enter and turn the recorder off. Go and look at
the vba code that was created. See if you can generalize it to your overall
needs. If not post the code to here.

--
Thanks,
Shane Devenshire


"Trying to Excel" wrote:

I have mutiple workbooks in a folder. All workbook data is on 'Sheet1' and
have the same format.
Row 1 contains headers.
Column A2:A20 contains dates
Column B2:B20 contains reference #'s such as 1356, 1378, 1478 etc
Column C2:C20 contains data pertaining to the Reference #.

How can I set up a macro on a master workbook that will pull the data from
all workbooks in the folder based on the information entered on the Master
Workbook.
As an example, on Master Workbook, Sheet1, A:1 = 1356, then all instances of
1356 and related data from all workbooks in the folder would be displayed on
the Master Workbook?

Your expertise, as always is appreciated

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
Merge option is not available. How to undo merge in this case? Gauri Excel Discussion (Misc queries) 1 October 9th 06 09:58 AM
Parameter/Criteria option not available for External Data Query rael_lucid Excel Discussion (Misc queries) 2 April 11th 06 03:48 AM
VLookup to merge Access Query data into Excel Report Vira-SJH Excel Discussion (Misc queries) 0 January 10th 06 07:18 PM
I want to merge two workbooks but the option is greyed out. Why? MOC Excel Discussion (Misc queries) 1 October 12th 05 01:52 AM
Problem with .Background Query option of ODBC Query Shilps Excel Programming 0 April 19th 04 06:41 AM


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