InterNetWork
New Member
- Joined
- Dec 6, 2014
- Messages
- 2
Hello,
Thanks to MrExcel MVP run the following sample code to get data from an external .xls file
How could i get data from an external .xls file specific columns (B,G,T,W,Y,Z,AA,AB,AD,AG,AT,AU,AX) and import them to "Master" Excel columns (A,B,C,D,E,F,G,H,I,J,K,L,M)
Thank you for reading ... I would be very grateful for any help
Theodore
Thanks to MrExcel MVP run the following sample code to get data from an external .xls file
Code:
Dim OpenFileName As StringDim wb As Workbook
'Select and Open workbook
OpenFileName = Application.GetOpenFilename("clients saved spreadsheet,*.xls")
If OpenFileName = "False" Then Exit Sub
Set wb = Workbooks.Open(OpenFileName)
'Get data EXAMPLE
ThisWorkbook.Sheets(1).Range("B5:C7").Value = wb.Sheets(1).Range("B5:C7").Value
MsgBox ("Done")
Set wb = Workbooks.Open(OpenFileName, UpdateLinks:=0)
How could i get data from an external .xls file specific columns (B,G,T,W,Y,Z,AA,AB,AD,AG,AT,AU,AX) and import them to "Master" Excel columns (A,B,C,D,E,F,G,H,I,J,K,L,M)

Thank you for reading ... I would be very grateful for any help
Theodore