How To Import Data From Another Worksheet?
How To Import Data From Another Worksheet?
ExtendOffice (https://www.extendoffice.com)
Products Knowledge Support Global
Boosting Your Productivity Sharing & Learning Office FAQs / Email 24 / 7 Your Language
Office Tips & Tricks Tips & Tricks for Excel Tips & Tricks for Word Tips & Tricks for Outlook
(/documents.html) (/documents/excel.html) (/documents/word.html) (/documents/outlook.html)
How To Import Data From Another Worksheet?
When you operate an Excel file, you may want to import some data from another worksheet into your current
worksheet. Today, I will talk about some interesting tricks for you to deal with this problem.
Office Tab: Bring handy tabs to Excel and other Office software, just like Chrome, Firefox and new
Internet Explorer. (/product/office-tab.html)
Try now (https://d2d42mpnbqmzj3.cloudfront.net/downloads/SetupOfficeTab.exe)
Kutools for Excel: 200 new features for Excel, make Excel much easy and powerful, increase productivity
immediately. (/product/kutools-for-excel.html)
Try now (https://d2d42mpnbqmzj3.cloudfront.net/downloads/KutoolsforExcelSetup.exe)
(/product/office-tab.html)
Amazing! Using Tabs In Excel Like Firefox, Chrome, Internet Explore 10! (/Produ
If you are familiar with the Connections feature in Excel, you can import another worksheet data into
current workbook, and your imported data will be updated with the original data automatically.
2. In the Workbook Connections dialog, click Add button, and in the popped out Existing Connections
dialog, click Browse for More button, see screenshots:
3. And then choose the workbook that you want to export its data to current worksheet.
4. After choosing the workbook, please click Open button, and select one worksheet that you want to use.
See screenshot:
5. Then click OK, it will return to the Workbook Connections dialog box, and your selected workbook is
added to the list box, please close this dialog.
7. In the Existing Connections dialog box, click the workbook that you are added just now, and click Open
button. See screenshot:
8. And in the popped out Import Data dialog, choose one option you like from the Select how you want to
view this data in your workbook, and then choose one the existing worksheet range or a new worksheet to
put the data.
9. Then click OK, the data from another worksheet has been imported into your specified worksheet.
Notes:
1. Using this method, you can import the data with the type of table, PivotTable Report or PivotChart and
PivotTable Report.
2. Your workbook has been connected to that external data, if you want to get the latest data in your own
workbook. Go to Data > Refresh All to get the updated data.
There are so many steps of above method, may be you will feel tired, here, the following VBA code also
can help you to import data from another worksheet.
1. Hold down the ALT + F11 keys, and it opens the Microsoft Visual Basic for Applications window.
2. Click Insert > Module, and paste the following code in the Module Window.
VBA code: Import data from another worksheet
1 Sub ImportDatafromotherworksheet()
2 Dim wkbCrntWorkBook As Workbook
3 Dim wkbSourceBook As Workbook
4 Dim rngSourceRange As Range
5 Dim rngDestination As Range
6 Set wkbCrntWorkBook = ActiveWorkbook
7 With Application.FileDialog(msoFileDialogOpen)
8 .Filters.Clear
9 .Filters.Add "Excel 2007-13", "*.xlsx; *.xlsm; *.xlsa"
10 .AllowMultiSelect = False
11 .Show
12 If .SelectedItems.Count > 0 Then
13 Workbooks.Open .SelectedItems(1)
14 Set wkbSourceBook = ActiveWorkbook
15 Set rngSourceRange = Application.InputBox(prompt:="Select source range",
16 wkbCrntWorkBook.Activate
17 Set rngDestination = Application.InputBox(prompt:="Select destination cel
18 rngSourceRange.Copy rngDestination
19 rngDestination.CurrentRegion.EntireColumn.AutoFit
20 wkbSourceBook.Close False
21 End If
22 End With
23 End Sub
3. Then press F5 key to run this code, and choose the workbook that you want to insert its data into
current workbook, see screenshot:
4. After selecting the workbook, then click Open button, and select a worksheet or a range of your
specified workbook which data you need to export. See screenshot:
5. Then click OK, and select one cell to put your imported data in your current worksheet, see screenshot:
6. Go on clicking OK, and your selected data has been imported into your worksheet.
Note: With this method, the imported data will not update with the original data.
Kutools for Excel also provides Insert File at Cursor feature for you to solve this problem.
Kutools for Excel (/product/kutools-for-excel.html) includes more than 120 handy Excel tools. Free to try
with no limitation in 30 days. Get it Now (/download/kutools-for-excel.html)
1. Open your workbook that you want to insert another worksheet data.
2. Click Enterprise > Import / Export > Insert File at Cursor, see screenshot:
3. And in the Insert File at Cursor dialog box, select a cell which you want to put the data begin in, and then
click Browse button to select one workbook that you want to insert.
4. Then click OK, and choose one worksheet if your workbook contains multiple worksheets from the
Select a Worksheet dialog, see screenshot:
5. And then click OK, your selected worksheet has been imported into your specific worksheet.
Note: With this method, the imported data will not update with the original data.
Related article:
Bring handy tabs to Excel and other Office software, just like Chrome, Firefox and new Internet
Explorer.
Amazing! Increase your productivity in 5 minutes. Don't need any special skills, save two hours every
day!
200 New Features for Excel, Make Excel Much Easy and Powerful:
Merge Cell/Rows/Columns without Losing Data.
Combine and Consolidate Multiple Sheets and Workbooks.
Compare Ranges, Copy Multiple Ranges, Convert Text to Date, Unit and Currency Conversion.
Count by Colors, Paging Subtotals, Advanced Sort and Super Filter,
More Select/Insert/Delete/Text/Format/Link/Comment/Workbooks/Worksheets Tools...
(/product/kutools-for-excel.html)
(/product/kutools-for-excel.html)
(/download/kutools-for-excel.html) (/order/kutools-for-
excel.html)
5 Comments RSS (/component/jlexcomment/?view=items&com_name=content&com_key=1800&format=feed) Login
Sort by Newest b
Say something here...