0% found this document useful (0 votes)
49 views10 pages

How To Import Data From Another Worksheet?

نقل ملفات الاكسيل

Uploaded by

Mustafa Adel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views10 pages

How To Import Data From Another Worksheet?

نقل ملفات الاكسيل

Uploaded by

Mustafa Adel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

NOTE: Other languages are Google-Translated.

You can go to the English


(https://www.extendoffice.com/documents/excel/1800-excel-import-data-from-another-sheet.html) version of this link.
Log in (/login.html) Register (/login.html?view=registration)

 ExtendOffice (https://www.extendoffice.com)
 Products  Knowledge  Support  Global
Boosting Your Productivity Sharing & Learning Office FAQs / Email 24 / 7 Your Language

(/documents.html) (/support.html) Custom Search

 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.

Import data from another worksheet with Connections function

Import data from another worksheet with VBA code

Import data from another worksheet with Kutools for Excel

Recommended Productivity Tools

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)

Import Data From Another Worksheet With Connections Function

(/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.

1. Go to click Data > Connections, see screenshot:

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.

6. Then go on clicking Data > Existing Connections, see screenshot:

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.

Import Data From Another Worksheet With VBA Code

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.

Import Data From Another Worksheet With Kutools For Excel

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.

To know more about this Insert File at Cursor feature. (/product/kutools-for-excel/insert-csv-file-into-


excel.html)

Related article:

How to import a text file or worksheet in Excel? (/documents/excel/806-excel-import-text-worksheet-


file.html)
Recommended Productivity Tools

Office Tab (/Product/Office-Tab.Html)

Bring handy tabs to Excel and other Office software, just like Chrome, Firefox and new Internet
Explorer.

Kutools For Excel (/Product/Kutools-For-Excel.Html)

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...

keegan · 3 months ago


How do I adapt the VBA code so that it will continuously update with another file?
Reply Share

Haris · 10 months ago


I want to learn VBA, can you give me the number of WhatsApp to facilitate communication
Reply Share

stephan McK · 5 months ago


Hit the record button in execl and ALT+f11 look at the code and then change it run it its the way learnt well
that was 20year ago
Even know I still hit the record and change it to fix the problem
Reply Share

Touheed khan · 1 years ago


Hi,

It is very useful for me and my organisation. I need help in this.


While connecting the excel files I am not able to open the html links which are there in main file. Please help me out
on this.
Reply Share

Harlan Sanders · 1 years ago


How would you adjust the VBA code so that it would paste selections as values?
Reply Share

Home (/) Knowledge (/documents.html) Support (/support.html) Forum (/forum.html)

Privacy Policy (/privacy-policy.html) About Us (/support/about-us.html)


Copyright © 2009 - 2018 ExtendOffice.com | All Rights Reserved. Sitemap (/component/jmap/sitemap.html)
Microsoft and the Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States
and/or other countries.

You might also like