Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a macro that will let me search for the location of an Excel file and
import the data from that file- Dim wb As Workbook Application.DisplayAlerts = False Application.ScreenUpdating = False Application.Dialogs(xlDialogOpen).Show ThisWorkbook.Path Set wb = ActiveWorkbook wb.ActiveSheet.Range("A4:E30").Copy _ ThisWorkbook.Sheets("Non Account Activity - Brokaw").Range("CA4") wb.Close False Application.DisplayAlerts = True Application.ScreenUpdating = True What I would like to do is modify this so that I can source 2 different files (in the same directory location) and have the data from both of them imported at the same time.. Is this possbile ? -- Thanks Larry |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Larry
See example 2 on this page : Merge a range from every workbook you select (below each other) http://www.rondebruin.nl/copy3.htm -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "Larry Fitch" wrote in message ... I have a macro that will let me search for the location of an Excel file and import the data from that file- Dim wb As Workbook Application.DisplayAlerts = False Application.ScreenUpdating = False Application.Dialogs(xlDialogOpen).Show ThisWorkbook.Path Set wb = ActiveWorkbook wb.ActiveSheet.Range("A4:E30").Copy _ ThisWorkbook.Sheets("Non Account Activity - Brokaw").Range("CA4") wb.Close False Application.DisplayAlerts = True Application.ScreenUpdating = True What I would like to do is modify this so that I can source 2 different files (in the same directory location) and have the data from both of them imported at the same time.. Is this possbile ? -- Thanks Larry |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Oops, you say sheets and not two workbooks
-- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "Ron de Bruin" wrote in message ... Hi Larry See example 2 on this page : Merge a range from every workbook you select (below each other) http://www.rondebruin.nl/copy3.htm -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "Larry Fitch" wrote in message ... I have a macro that will let me search for the location of an Excel file and import the data from that file- Dim wb As Workbook Application.DisplayAlerts = False Application.ScreenUpdating = False Application.Dialogs(xlDialogOpen).Show ThisWorkbook.Path Set wb = ActiveWorkbook wb.ActiveSheet.Range("A4:E30").Copy _ ThisWorkbook.Sheets("Non Account Activity - Brokaw").Range("CA4") wb.Close False Application.DisplayAlerts = True Application.ScreenUpdating = True What I would like to do is modify this so that I can source 2 different files (in the same directory location) and have the data from both of them imported at the same time.. Is this possbile ? -- Thanks Larry |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VBA - Importing Sheets | Excel Programming | |||
Joel - Importing multiple text files to 1 spreadsheet, now importing from excel files | Excel Programming | |||
Delete Rows of Data in multiple Excel Sheets upon importing to Access | Excel Programming | |||
multiple sheets when importing into excel | Excel Worksheet Functions | |||
Importing from CSV over multiple sheets | Excel Programming |