ACC: How to Export a Graph from MS Access to MS Excel

Last reviewed: July 22, 1997
Article ID: Q158928
The information in this article applies to:
  • Microsoft Access versions 7.0, 97
  • Microsoft Excel versions 7.0, 97

SUMMARY

Moderate: Requires basic macro, coding, and interoperability skills.

In Microsoft Access, you can use Microsoft Graph to embed a graph object in a form or report. However, if you export the form or report to a Microsoft Excel worksheet, the graph does not appear in the worksheet.

This article describes how to export a Microsoft Graph object to a Microsoft Excel worksheet.

MORE INFORMATION

If the graph you want to export to Microsoft Excel is on a report, you must copy the graph to a form first, and then you can copy it from the form and paste it into Microsoft Excel. If you copy the graph directly from a report and paste it into a Microsoft Excel worksheet, you only see sample graph data on the worksheet. To export a graph from a Microsoft Access form or report to a Microsoft Excel worksheet, follow these steps:

Export a Graph on a Report

  1. Open the database that contains the graph you want to export, and then open the report containing the graph in Design view.

  2. Click the graph object to select it, and then on the Edit menu, click Copy.

  3. Create a new form not based on any table or query in Design view.

  4. On the Edit menu, click Paste. The graph object appears on the form. Note that the graph displays sample data in Design view.

  5. Set the following properties for the graph object:

          Enabled: Yes
          Locked: No
    

  6. View the form in Form view so the graph can calculate actual data.

  7. Click the graph object to select it, and then on the Edit menu, click Copy.

  8. Start Microsoft Excel and open the worksheet into which you want to paste the graph.

  9. On the Edit menu, click Paste to insert the graph.

Export a Graph on a Form

  1. Open the database that contains the object you want to export.

  2. Open the form containing the graph in Design view.

  3. Perform steps 5-9 in the "Export a Graph on a Report" section.

REFERENCES

For more information about using graphs in Microsoft Access, search the Help Index for "graphs," or ask the Microsoft Access 97 Office Assistant.

For more information about displaying actual graph data in Design view of a form or report, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q154454
   TITLE     : ACC: Microsoft Graph Always Shows Sample Data in Design View
 

	
	


Keywords : FmrHowto IntpGrph kbinterop
Version : 7.0 97
Platform : WINDOWS
Hardware : X86
Issue type : kbhowto


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 22, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.