Solved

How do I convert a range in excel that contains a graph and table of data into a JPEG image that I can attach to an email and send?

Posted on 2014-01-17
3
336 Views
Last Modified: 2014-01-22
Hello,

I would like to know what is the VB code that will convert a range in excel that contains a graph and table of data into a JPEG image that I can attach to an email and send? The range will vary but will be named.

Thanks,

f19l
0
Comment
Question by:f19l
  • 2
3 Comments
 
LVL 6

Expert Comment

by:Mahesh Bhutkar
ID: 39788583
In Excel 2003 there's a little trick. Hold down the Shift key and choose Edit from the menu. Note that instead of Copy it offers Copy Picture—select that item. You'll be asked whether to copy as Picture or Bitmap, and whether to copy the image As shown on screen or As printed. You'll almost always want to choose Bitmap and As shown on screen. If you choose Picture, the image will be copied as a resizable Windows Metafile, and not all programs can use that format.

Naturally, it's different in Excel 2007. To copy a range as a picture, in the Home ribbon's Clipboard pane click the Down arrow under Paste, choose As Picture from the menu, and then Copy as Picture. (If you're surprised at having to choose Paste when you want to copy, remember this is coming from the same company that makes you click Start when you want to shut down.) As in Excel 2003, you'll generally want to copy it as Bitmap and As shown on screen.

But wait! In either version it can be easier, much easier. Just highlight the data range, chart, or whatever and press Ctrl-C. Excel puts the data into the clipboard in a variety of formats, so different programs can make use of it. It includes both formatted and unformatted text, as well as a format proprietary to Excel. And it also copies the data area as an image—Excel 2007 supplies four distinct image formats. When you switch to your graphics program and press Ctrl-V, the program will choose the clipboard format that suits it best. You can select & copy (Ctrl - C) the area from Excel, open Mspaint and just paste (Ctrl - V). Save the file as JPEG.

For more information check, http://www.pcmag.com/article2/0,2817,2269778,00.asp
http://www.print-driver.com/how-to/convert-excel-to-jpeg
0
 

Author Comment

by:f19l
ID: 39788799
I have tried to look at the VB code for converting excel to JPEG file and see if I can apply it to my needs but cannot.
0
 
LVL 6

Accepted Solution

by:
Mahesh Bhutkar earned 500 total points
ID: 39799578
This is the simplest manual process you can apply.
Just select the area & copy (Ctrl - C) it from Excel, open Mspaint and just paste (Ctrl - V). Save the file as JPEG.

Otherwise you have to purchase some tools for same.
http://www.print-driver.com/how-to/convert-excel-to-jpeg
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
In this tutorial viewers will learn how to apply a non-rasterized, vector-scalable texture to a vector using opacity texture masks in Illustrator Open a vector in Illustrator. Black and white vectors work best, but this effect can also be used to ad…

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now