Simple Import Data From Another WorkBook PLEASE HELP!!!

somebody113

New Member
Joined
Apr 28, 2011
Messages
14
Okay, this is super simple, I can’t seem to find the EXACT answer I’m looking for..
All I need is a simple macro to import data from another workbook.

I have a Master File called “Master.xlsx”

and

.csv file called “Extract.csv” that refreshes every hour. I have a imacro setup to refresh that

I need a macro that pulls from columns A-G on “Extract.csv” and pastes the info a sheet inside of “Master.xlsx” called “PDump”

So…

Extract.xlsx
Sheet - Sheet1
Columns A-G

TO

Master
Sheet - Pdump
Paste Starting at cell N3

I’d like to run this macro from “master” and its fine if it constantly overwrites the data

This is the closest thing I could find to what I'm looking for, but it does not work!

ChDir _
"S:\Operations\Oper\Analysis\KPI\FY'04 KPI & Month End Spreadsheets\Monarch\SKU backup"
Workbooks.Open Filename:= _
"S:\Operations\Oper\Analysis\KPI\FY'04 KPI & Month End Spreadsheets\Monarch\SKU backup\rwp381.xls"
Range("A2:L15").Select
Selection.Copy
Windows("Model.xls").Activate
Sheets("LinesOnly").Select
Range("A2").Select
ActiveSheet.Paste
End Sub
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Forum statistics

Threads
1,224,600
Messages
6,179,836
Members
452,947
Latest member
Gerry_F

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