Import Excel chart (or image of chart) into Access

Posted on 2014-04-14
Last Modified: 2014-04-25

As anyone who uses Access knows the charts are pretty bad compared to what you can do in Excel. I've got a really nice chart built in Access that is linked to a query in my Access file.  Is it possible to import the chart from Excel back into Access? If not, how about importing or linking to it as an image?

Thanks, Dale
Question by:dlogan7
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
LVL 85

Assisted Solution

by:Scott McDaniel (Microsoft Access MVP - EE MVE )
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 total points
ID: 39998885
No, you cannot import an Excel chart into Access.

You could use an Unbound OLE Object control on a form to show that chart. Just drop the control on the form and set the Object to your Excel workbook.

If you just want an image, then take a screenshot of the image and use the Image control to show that picture. If the image changes frequently, or if it needs to be dependent on the data in the form, then this may not be the best way to handle your issue, however.

Author Comment

ID: 40010327

I've never used an unbound OLE Object control but was able to get this one to work. Maybe this should be a new question, but is there anyway to have the data used for the chart in Excel auto refresh?
LVL 85
ID: 40011267
It should refresh every time you reload it, assuming your Excel sheet does so. Essentially, the OLE Object control just shows the object (in this case, and Excel file) as it would in the native environment (in this case, Excel).

Or do you mean something else?
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.


Author Comment

ID: 40011567
I will give it a try. Just "assumed without trying" it would need to be refreshed using VBA. The source is actually in the Access file where I am showing the chart. Just needed a much better chart than Access offers.

Author Comment

ID: 40011786
I have the data connection in Excel set to refresh when the file is opened. So, refreshing the control in Access simply shows the chart as it were the last time the Excel file was saved.
LVL 85

Accepted Solution

Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 total points
ID: 40012802
You'd have to automate Excel to do this, if you need to open and then save the file. Without going into too many specifics:

Dim xl As Object
Set xl = CreateObject("Excel.Application")
xl.visible = False
xl.Workbooks.OPen "Full path to your xls file"

xl.Visible = False
xl.Workbooks.Open ""

Set xl = Nothing

Open in new window

Do something like that just before you open the Access form.

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question