Madeleine has a worksheet that includes a number of charts. She needs to create a JPG file that contains one of those charts. She is looking for the best way to create a high-quality JPG from the chart.
There are actually a good number of ways you can perform this task. Before mentioning them, though, it should be mentioned that if you want "high quality," you may not want to use JPG. The reason is simple—JPG is considered a "lossy" file format. This means that when you save as JPG, some of your quality may be lost, depending on how compressed you choose to make the image file. Instead, seek to save your images in a "lossless" format, such as PNG or TIF. If you absolutely need to have the JPG format, you could always convert the PNG or TIF file to JPG, which means you then still have the higher-quality image file available for later use.
To save your chart in a graphics format (be it JPG or one of the others), one approach is to pass the image through either Word or PowerPoint. Follow these general steps:
You can also use the Snipping tool (an accessory available in Windows) to capture just about anything that appears on your screen. The advantage of this approach is that you are actually capturing the chart at the full resolution of what you see on your screen. You can find out more about the Snipping tool on this page:
https://windows.tips.net/T012558
To capture a larger version of your chart with the Snipping tool, you can adjust the zoom setting in Excel before actually doing the capture.
Another approach is to create a PDF of your chart. Assuming you have Adobe Acrobat on your system (you'll want to check; not everyone does), you can then load the PDF file and choose to export it as a JPG file. This produces an image that is just as high a quality as what you see when you look at the PDF file.
Of course, you could use other third-party graphics programs to get your chart into a graphics format. The steps are similar to those detailed earlier:
If you need to save your charts as graphics quite a bit, you might want to consider using a macro to do the exporting directly. Here's how you do it:
Sub SaveChartAsJPG() Dim sFileName As String sFileName = ThisWorkbook.Path & "\" & ActiveChart.Name & ".jpg" ActiveChart.Export Filename:=sFileName, FilterName:="JPG" End Sub
This macro results in the currently selected chart being saved in the same folder in which the workbook is saved. If you decide you would rather save your chart in PNG format, then all you need to do is change "jpg" to "png" and "JPG" to "PNG".
For additional ideas about how to save your charts in a graphics format, you may be interested in this page:
https://www.ablebits.com/office-addins-blog/2013/08/27/save-excel-chart-as-image/
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (1775) applies to Microsoft Excel 2007, 2010, 2013, and 2016.
Program Successfully in Excel! John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out Excel 2013 Power Programming with VBA today!
Don't like the way that Excel formats lines and arrows? You can easily make your own formatting changes, and then use ...
Discover MoreNeed to export a graphics group from a chart so that you can use the group in a different program? It's not as easy as ...
Discover MoreWhen you add multiple graphic objects in a worksheet, it can often be beneficial to group those objects together. Here's ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
2017-04-09 23:56:42
bill driskell
all of these methods work but I usually elect to use an excel menu option. It works for whatever you've selected (cells or objects or both). Click on the Copy drop-down in Home. Pick Copy as Picture and then, if I'm eventually pasting the image into a print document, I'll select the "as shown when printed" option.
Typically, if I'm making a series of graphs (changing data or formats), I'll cache these images in an empty worksheet to later copy and paste into Word.
and yes, this can be macro-tized but not via the recorder.
2017-04-09 02:26:07
Michael (Micky) Avidan
@David,
* Select the data source range and press <F11>.
* Change the chart type to whatever suits you.
* Press <CTRL+F1>
Et Voilà !!!
--------------------------
Michael (Micky) Avidan
“Microsoft® Answers" - Wiki author & Forums Moderator
“Microsoft®” MVP – Excel (2009-2017)
ISRAEL
2017-04-08 07:47:26
David
I use the snipping tool quite often, but it makes me wish the old-days option of having the chart full-screen was still available.
Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2018 Sharon Parq Associates, Inc.
Comments