Help fix my macro - Extracting data from multiple files and entering into 1 workbook

shatooi

New Member
Joined
Aug 21, 2011
Messages
2
I have a workbook with a macro - when a user clicks on the "obtain values" button, it will open a dialog box where they select files. Once those files are selected, the macro will extract specific data from each of these files, and input them into the respective worksheets inside the "TAO Analysis - Beta" file. It will identify which worksheet it needs to input data into based on the filename.

i.e. filename = 205 (ABC) will search for company ABC on worksheet 205, and input the data in pink (data below)

Data needed = columns G:J (dollars only, not hours), column AS, AU, AX, and BG.

Column G will always be triggered by the reporting period (cell B5) on the 205/206 files.

The macro I have in there I copied over from another workbook I use. I'm having difficulty tweaking it for the TAO Analysis workbook. I have not assigned the macro yet to the button.

I'm really trying to learn how to do this, but am stuck understanding the extracting portion of the macro. It will be greatly appreciated if anyone can help me.

I have 3 sample files. It doesn't look like I can attach them here. Looks like I'd have to email it to someone.
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Forum statistics

Threads
1,224,609
Messages
6,179,876
Members
452,949
Latest member
Dupuhini

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top