Microsoft Office Online
Sign in to My Office Online (What's this?) | Sign in

 
 
Microsoft Office Excel
Search
Search
 
Icon: Flag: (c) Microsoft
Get up to speed
 
 
 
Warning: You are viewing this page with an unsupported Web browser. This Web site works best with Microsoft Internet Explorer 6.0 or later, Firefox 1.5, or Netscape Navigator 8.0 or later. Learn more about supported browsers.

Copy Access data into Excel
 

Decide whether you want to analyze an entire table or query or all of the data behind a form or report, or copy only selected records.

Do one of the following:

ShowCopy an entire set of data to Microsoft Excel

  1. In the Database window in Microsoft Access, click the table, query, form, or report you want to use in Excel.
  2. On the Tools menu, point to Office Links, and then click Analyze It With MS Excel.

    Access saves the contents of the table, query, form, or report as a Excel workbook (.xls) file and opens the file in Excel. The file is saved with the name of the table, query, or other database object in the current working folder (working folder: The folder in which your documents appear when you open or save them. If you select another folder when opening or saving, that folder becomes the working folder. You can set the startup location of this folder in most Office applications.).

Note  If you have a main form with one or more subforms or a main report with one or more subreports, Access saves only the data in the main form or report to the workbook.

ShowCopy selected records to Excel

  1. In Microsoft Access, open the table, query, or form that contains the records you want to copy.
  2. On the View menu, click Datasheet View.

  3. Select the records you want to copy.

    If you want to select specific columns, drag across adjacent column headings.

  4. Click Copy Button image.
  5. Switch to Excel.
  6. Click in the upper-left corner of the worksheet area where you want the first field name to appear.

    To ensure that the copied records do not replace existing records, make sure that the worksheet has no date below or to the right of the cell you click.

  7. Click Paste Button image.
  8. You may need to adjust the row height of data you paste onto your worksheet. Do one of the following:

    • Select the rows, click Cells on the Format menu, click the Alignment tab, and then clear the Wrap text check box.
    • On the Format menu point to Row, and click AutoFit.

advertisement