Vba import data access in Excel

Data exchange between applications is often required in organizations ranging from small to large.

The data may be of any form ranging from Access database,SQL database,XML or any other format.

But for easy manipulation, most of the organizations prefer to convert the data into excel format.

In other words, import data from external source into excel.

There are various source of data and one of the most common source is MS Access.

The following steps illustrates, how to import data from Access database.

Goto "Data" tab and select "From Access" as shown below:

excel vba import data access

The "Select Data Source" dialog box appears from where, the database file has to be chosen.

excel vba import data access

Once the database is selected, the next dialog box appears demanding to choose a table to import data from.

excel vba import data access

Once the table is selected, the next step is to choose the fields to import.

excel vba import data access

The "Import Data" dialog box enables the user to set various criteria such as,

whether to import data in existing or new sheet, to import as table, pivot table,

pivot chart or simple connection and so on.

Once the "OK" button is clicked, the corresponding data are imported.

Note that there is a difference between importing data and just copy and paste. In the former case, a connection is established between the database and

the excel and hence any change in the database will be reflected here in the excel, when "Refresh All" is clicked.


You can find similar Excel Questions and Answer hereunder

1) How can I filter and copy only filtered data using VBA?

2) I have data arranged in rows of information. Is there any way I can enter new data through a form instead of entering it directly in SpreadSheet?

3) I have to retrieve data from a specific column in a Table. In Excel, how can I do that?

4) How can I fill a series of data automatically?

5) How can I identify all cells with Data Validation in my WorkSheet?

6) I frequently use a Macro - is there a way to quickly access the Macro in the Excel Ribbon?

7) I have WorkBook with sensitive confidential information - how do I encrypt / protect my file so that access to file contents is restricted?

8) How can I filter a table to get all records that have less than a particular value in a specific column?

9) How can I enter information in multiple cells simultaneously?

10) Tables in Excel VBA. How you can create table in VBA and work with them with macros


Here the previous and next chapter